use of net.java.slee.resource.diameter.gx.events.GxReAuthRequest in project jain-slee.diameter by RestComm.
the class GxFactoriesTest method isRequestRAR.
@Test
public void isRequestRAR() throws Exception {
GxReAuthRequest rar = gxMessageFactory.createGxReAuthRequest();
assertTrue("Request Flag in Gx Re-Auth-Request is not set.", rar.getHeader().isRequest());
}
use of net.java.slee.resource.diameter.gx.events.GxReAuthRequest in project jain-slee.diameter by RestComm.
the class GxFactoriesTest method hasTFlagSetRAA.
@Test
public void hasTFlagSetRAA() throws Exception {
GxReAuthRequest rar = gxMessageFactory.createGxReAuthRequest();
((DiameterMessageImpl) rar).getGenericData().setReTransmitted(true);
assertTrue("The 'T' flag should be set in Re-Auth-Request", rar.getHeader().isPotentiallyRetransmitted());
GxReAuthAnswer raa = gxClientSession.createGxReAuthAnswer(rar);
assertFalse("The 'T' flag should not be set in Re-Auth-Answer", raa.getHeader().isPotentiallyRetransmitted());
}
use of net.java.slee.resource.diameter.gx.events.GxReAuthRequest in project jain-slee.diameter by RestComm.
the class GxFactoriesTest method isProxiableRAR.
@Test
public void isProxiableRAR() throws Exception {
GxReAuthRequest rar = gxMessageFactory.createGxReAuthRequest();
assertTrue("The 'P' bit is not set by default in Re-Auth-Request, it should.", rar.getHeader().isProxiable());
}
Aggregations