use of net.java.slee.resource.diameter.base.events.AbortSessionAnswer in project jain-slee.diameter by RestComm.
the class BaseFactoriesTest method hasDestinationHostASA.
@Test
public void hasDestinationHostASA() throws Exception {
AbortSessionAnswer asa = messageFactory.createAbortSessionAnswer(messageFactory.createAbortSessionRequest());
assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", asa.getDestinationHost());
}
use of net.java.slee.resource.diameter.base.events.AbortSessionAnswer in project jain-slee.diameter by RestComm.
the class BaseFactoriesTest method testGettersAndSettersASA.
@Test
public void testGettersAndSettersASA() throws Exception {
AbortSessionAnswer asa = messageFactory.createAbortSessionAnswer(messageFactory.createAbortSessionRequest());
int nFailures = AvpAssistant.INSTANCE.testMethods(asa, AbortSessionAnswer.class);
assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
use of net.java.slee.resource.diameter.base.events.AbortSessionAnswer in project jain-slee.diameter by RestComm.
the class BaseFactoriesTest method hasTFlagSetASA.
@Test
public void hasTFlagSetASA() throws Exception {
AbortSessionRequest asr = messageFactory.createAbortSessionRequest();
((DiameterMessageImpl) asr).getGenericData().setReTransmitted(true);
assertTrue("The 'T' flag should be set in Abort-Session-Request", asr.getHeader().isPotentiallyRetransmitted());
AbortSessionAnswer asa = messageFactory.createAbortSessionAnswer(asr);
assertFalse("The 'T' flag should not be set in Abort-Session-Answer", asa.getHeader().isPotentiallyRetransmitted());
}
Aggregations