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);
}
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());
}
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());
}
Aggregations