use of org.jivesoftware.smackx.push_notifications.element.EnablePushNotificationsIQ in project Smack by igniterealtime.
the class EnablePushNotificationsIQTest method checkEnablePushNotificationsIQ.
@Test
public void checkEnablePushNotificationsIQ() throws Exception {
EnablePushNotificationsIQ enablePushNotificationsIQ = new EnablePushNotificationsIQ(JidCreate.from("push-5.client.example"), "yxs32uqsflafdk3iuqo");
enablePushNotificationsIQ.setStanzaId("x42");
Assert.assertEquals(exampleEnableIQ, enablePushNotificationsIQ.toXML().toString());
}
use of org.jivesoftware.smackx.push_notifications.element.EnablePushNotificationsIQ in project Smack by igniterealtime.
the class EnablePushNotificationsIQTest method checkEnablePushNotificationsIQWithPublishOptions.
@Test
public void checkEnablePushNotificationsIQWithPublishOptions() throws Exception {
HashMap<String, String> publishOptions = new HashMap<>();
publishOptions.put("secret", "eruio234vzxc2kla-91");
EnablePushNotificationsIQ enablePushNotificationsIQ = new EnablePushNotificationsIQ(JidCreate.from("push-5.client.example"), "yxs32uqsflafdk3iuqo", publishOptions);
enablePushNotificationsIQ.setStanzaId("x42");
Assert.assertEquals(exampleEnableIQWithPublishOptions, enablePushNotificationsIQ.toXML().toString());
}
Aggregations