Search in sources :

Example 6 with GxReAuthRequest

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());
}
Also used : GxReAuthRequest(net.java.slee.resource.diameter.gx.events.GxReAuthRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 7 with GxReAuthRequest

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());
}
Also used : GxReAuthAnswer(net.java.slee.resource.diameter.gx.events.GxReAuthAnswer) GxReAuthRequest(net.java.slee.resource.diameter.gx.events.GxReAuthRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 8 with GxReAuthRequest

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());
}
Also used : GxReAuthRequest(net.java.slee.resource.diameter.gx.events.GxReAuthRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

GxReAuthRequest (net.java.slee.resource.diameter.gx.events.GxReAuthRequest)8 Test (org.junit.Test)7 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)7 GxReAuthAnswer (net.java.slee.resource.diameter.gx.events.GxReAuthAnswer)2 GxCreditControlRequest (net.java.slee.resource.diameter.gx.events.GxCreditControlRequest)1 ApplicationId (org.jdiameter.api.ApplicationId)1 GxMessageFactoryImpl (org.mobicents.slee.resource.diameter.gx.GxMessageFactoryImpl)1