use of net.java.slee.resource.diameter.gq.events.GqAbortSessionAnswer in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method testGettersAndSettersASA.
@Test
public void testGettersAndSettersASA() throws Exception {
GqAbortSessionAnswer asa = gqMessageFactory.createGqAbortSessionAnswer(gqMessageFactory.createGqAbortSessionRequest());
int nFailures = GqAvpAssistant.INSTANCE.testMethods(asa, GqAbortSessionAnswer.class);
assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
use of net.java.slee.resource.diameter.gq.events.GqAbortSessionAnswer in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method isAnswerASA.
// Abort-Session-Answer
@Test
public void isAnswerASA() throws Exception {
GqAbortSessionAnswer asa = gqMessageFactory.createGqAbortSessionAnswer(gqMessageFactory.createGqAbortSessionRequest());
assertFalse("Request Flag in Abort-Session-Answer is set.", asa.getHeader().isRequest());
}
use of net.java.slee.resource.diameter.gq.events.GqAbortSessionAnswer in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method hasDestinationRealmASA.
@Test
public void hasDestinationRealmASA() throws Exception {
GqAbortSessionAnswer asa = gqMessageFactory.createGqAbortSessionAnswer(gqMessageFactory.createGqAbortSessionRequest());
assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", asa.getDestinationRealm());
}
use of net.java.slee.resource.diameter.gq.events.GqAbortSessionAnswer in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method hasDestinationHostASA.
@Test
public void hasDestinationHostASA() throws Exception {
GqAbortSessionAnswer asa = gqMessageFactory.createGqAbortSessionAnswer(gqMessageFactory.createGqAbortSessionRequest());
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.gq.events.GqAbortSessionAnswer in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method hasTFlagSetASA.
@Test
public void hasTFlagSetASA() throws Exception {
GqAbortSessionRequest asr = gqMessageFactory.createGqAbortSessionRequest();
((DiameterMessageImpl) asr).getGenericData().setReTransmitted(true);
assertTrue("The 'T' flag should be set in Abort-Session-Request", asr.getHeader().isPotentiallyRetransmitted());
GqAbortSessionAnswer asa = gqMessageFactory.createGqAbortSessionAnswer(asr);
assertFalse("The 'T' flag should not be set in Abort-Session-Answer", asa.getHeader().isPotentiallyRetransmitted());
}
Aggregations