#1 added support for html flag

This commit is contained in:
Sven Kubiak
2015-12-08 22:03:44 +01:00
parent e6dc23e0ae
commit c2432fc017
5 changed files with 139 additions and 119 deletions

View File

@ -19,48 +19,51 @@ public class TestJPushover {
private static final String EXPIRE = "expire";
private static final String DEVICE = "device";
private static final String CALLBACK = "callback";
@Test
public void TestValues(){
JPushover push = new JPushover();
final JPushover push = new JPushover();
push.callback(CALLBACK);
assertEquals(push.getCallback(), CALLBACK);
push.device(DEVICE);
assertEquals(push.getDevice(), DEVICE);
push.expire(EXPIRE);
assertEquals(push.getExpire(), EXPIRE);
push.message(MESSAGE);
assertEquals(push.getMessage(), MESSAGE);
push.priority(Priority.HIGH);
assertEquals(push.getPriority(), Priority.HIGH);
push.retry(RETRY);
assertEquals(push.getRetry(), RETRY);
push.sound(Sound.ALIEN);
assertEquals(push.getSound(), Sound.ALIEN);
push.timestamp(TIMESTAMP);
assertEquals(push.getTimestamp(), TIMESTAMP);
push.title(TITLE);
assertEquals(push.getTitle(), TITLE);
push.token(TOKEN);
assertEquals(push.getToken(), TOKEN);
push.url(URL);
assertEquals(push.getUrl(), URL);
push.urlTitle(URL_TITLE);
assertEquals(push.getUrlTitle(), URL_TITLE);
push.user(USER);
assertEquals(push.getUser(), USER);
push.html();
assertEquals(push.getHtml(), true);
}
}