Search in sources :

Example 1 with DisablePushNotificationsIQ

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());
}
Also used : DisablePushNotificationsIQ(org.jivesoftware.smackx.push_notifications.element.DisablePushNotificationsIQ) Test(org.junit.Test)

Example 2 with DisablePushNotificationsIQ

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());
}
Also used : DisablePushNotificationsIQ(org.jivesoftware.smackx.push_notifications.element.DisablePushNotificationsIQ) Test(org.junit.Test)

Aggregations

DisablePushNotificationsIQ (org.jivesoftware.smackx.push_notifications.element.DisablePushNotificationsIQ)2 Test (org.junit.Test)2