Search in sources :

Example 11 with PushNotificationAnswer

use of net.java.slee.resource.diameter.sh.events.PushNotificationAnswer in project jain-slee.diameter by RestComm.

the class ShClientFactoriesTest method isAnswerPNA.

@Test
public void isAnswerPNA() throws Exception {
    PushNotificationAnswer pna = shClientFactory.createPushNotificationAnswer(createPushNotificationRequest());
    assertFalse("Request Flag in Push-Notification-Answer is set.", pna.getHeader().isRequest());
}
Also used : PushNotificationAnswer(net.java.slee.resource.diameter.sh.events.PushNotificationAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

PushNotificationAnswer (net.java.slee.resource.diameter.sh.events.PushNotificationAnswer)11 Test (org.junit.Test)9 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)9 PushNotificationRequest (net.java.slee.resource.diameter.sh.events.PushNotificationRequest)5 ApplicationId (org.jdiameter.api.ApplicationId)2 ShClientMessageFactoryImpl (org.mobicents.slee.resource.diameter.sh.client.ShClientMessageFactoryImpl)2 IOException (java.io.IOException)1 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)1 UserIdentityAvp (net.java.slee.resource.diameter.sh.events.avp.UserIdentityAvp)1 Answer (org.jdiameter.api.Answer)1 PushNotificationAnswerImpl (org.jdiameter.common.impl.app.sh.PushNotificationAnswerImpl)1 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)1 DiameterShMessageImpl (org.mobicents.slee.resource.diameter.sh.events.DiameterShMessageImpl)1