use of org.jivesoftware.smackx.push_notifications.element.DisablePushNotificationsIQ in project Smack by igniterealtime.
the class DisablePushNotificationsIQTest method checkDisableAllPushNotificationsIQ.
@Test
public void checkDisableAllPushNotificationsIQ() throws Exception {
DisablePushNotificationsIQ disablePushNotificationsIQ = new DisablePushNotificationsIQ(JidCreate.from("push-5.client.example"));
disablePushNotificationsIQ.setStanzaId("x97");
Assert.assertEquals(disableAllNotificationsIQExample, disablePushNotificationsIQ.toXML().toString());
}
use of org.jivesoftware.smackx.push_notifications.element.DisablePushNotificationsIQ in project Smack by igniterealtime.
the class DisablePushNotificationsIQTest method checkDisableNodePushNotificationsIQ.
@Test
public void checkDisableNodePushNotificationsIQ() throws Exception {
DisablePushNotificationsIQ disablePushNotificationsIQ = new DisablePushNotificationsIQ(JidCreate.from("push-5.client.example"), "yxs32uqsflafdk3iuqo");
disablePushNotificationsIQ.setStanzaId("x97");
Assert.assertEquals(disableNodeNotificationsIQExample, disablePushNotificationsIQ.toXML().toString());
}
Aggregations