Search in sources :

Example 11 with NotifyRequest

use of net.java.slee.resource.diameter.s6a.events.NotifyRequest in project jain-slee.diameter by RestComm.

the class S6aFactoriesTest method testGettersAndSettersNOA.

@Test
public void testGettersAndSettersNOA() throws Exception {
    NotifyRequest nor = s6aMessageFactory.createNotifyRequest();
    serverSession.fetchSessionData(nor);
    NotifyAnswer noa = serverSession.createNotifyAnswer();
    int nFailures = S6aAvpAssistant.INSTANCE.testMethods(noa, NotifyAnswer.class);
    assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
Also used : NotifyRequest(net.java.slee.resource.diameter.s6a.events.NotifyRequest) NotifyAnswer(net.java.slee.resource.diameter.s6a.events.NotifyAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 12 with NotifyRequest

use of net.java.slee.resource.diameter.s6a.events.NotifyRequest in project jain-slee.diameter by RestComm.

the class S6aFactoriesTest method hasDestinationRealmNOA.

@Test
public void hasDestinationRealmNOA() throws Exception {
    NotifyRequest nor = s6aMessageFactory.createNotifyRequest();
    serverSession.fetchSessionData(nor);
    NotifyAnswer noa = serverSession.createNotifyAnswer();
    assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", noa.getDestinationRealm());
}
Also used : NotifyRequest(net.java.slee.resource.diameter.s6a.events.NotifyRequest) NotifyAnswer(net.java.slee.resource.diameter.s6a.events.NotifyAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 13 with NotifyRequest

use of net.java.slee.resource.diameter.s6a.events.NotifyRequest in project jain-slee.diameter by RestComm.

the class S6aFactoriesTest method isAnswerNOA.

@Test
public void isAnswerNOA() throws Exception {
    NotifyRequest nor = s6aMessageFactory.createNotifyRequest();
    serverSession.fetchSessionData(nor);
    NotifyAnswer noa = serverSession.createNotifyAnswer();
    assertFalse("Request Flag in Notify-Answer is set.", noa.getHeader().isRequest());
}
Also used : NotifyRequest(net.java.slee.resource.diameter.s6a.events.NotifyRequest) NotifyAnswer(net.java.slee.resource.diameter.s6a.events.NotifyAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

NotifyRequest (net.java.slee.resource.diameter.s6a.events.NotifyRequest)13 Test (org.junit.Test)11 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)11 NotifyAnswer (net.java.slee.resource.diameter.s6a.events.NotifyAnswer)8 ApplicationId (org.jdiameter.api.ApplicationId)2 S6aMessageFactoryImpl (org.mobicents.slee.resource.diameter.s6a.S6aMessageFactoryImpl)2 DiameterAvp (net.java.slee.resource.diameter.base.events.avp.DiameterAvp)1 InternalException (org.jdiameter.api.InternalException)1