use of net.java.slee.resource.diameter.gq.events.GqAARequest in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method isProxiableAAR.
@Test
public void isProxiableAAR() throws Exception {
GqAARequest rar = gqMessageFactory.createGqAARequest();
assertTrue("The 'P' bit is not set by default in Gq' AA-Request, it should.", rar.getHeader().isProxiable());
}
use of net.java.slee.resource.diameter.gq.events.GqAARequest in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method hasTFlagSetAAA.
@Test
public void hasTFlagSetAAA() throws Exception {
GqAARequest aar = gqMessageFactory.createGqAARequest();
((DiameterMessageImpl) aar).getGenericData().setReTransmitted(true);
assertTrue("The 'T' flag should be set in AA-Request", aar.getHeader().isPotentiallyRetransmitted());
GqAAAnswer aaa = gqMessageFactory.createGqAAAnswer(aar);
assertFalse("The 'T' flag should not be set in AA-Answer", aaa.getHeader().isPotentiallyRetransmitted());
}
use of net.java.slee.resource.diameter.gq.events.GqAARequest in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method hasGqApplicationIdAAR.
@Test
public void hasGqApplicationIdAAR() throws Exception {
GqAARequest aar = gqMessageFactory.createGqAARequest();
assertTrue("Auth-Application-Id AVP in Gq AAR must be " + GqMessageFactory._GQ_AUTH_APP_ID + ", it is " + aar.getAuthApplicationId(), aar.getAuthApplicationId() == GqMessageFactory._GQ_AUTH_APP_ID);
}
use of net.java.slee.resource.diameter.gq.events.GqAARequest in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method testGettersAndSettersAAR.
@Test
public void testGettersAndSettersAAR() throws Exception {
GqAARequest aar = gqMessageFactory.createGqAARequest();
int nFailures = GqAvpAssistant.INSTANCE.testMethods(aar, GqAARequest.class);
assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
use of net.java.slee.resource.diameter.gq.events.GqAARequest in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method isRequestAAR.
// AA-Request
@Test
public void isRequestAAR() throws Exception {
GqAARequest aar = gqMessageFactory.createGqAARequest();
assertTrue("Request Flag in AA-Request is not set.", aar.getHeader().isRequest());
}
Aggregations