use of net.java.slee.resource.diameter.base.events.ReAuthRequest in project jain-slee.diameter by RestComm.
the class BaseFactoriesTest method hasTFlagSetRAA.
@Test
public void hasTFlagSetRAA() throws Exception {
ReAuthRequest rar = messageFactory.createReAuthRequest();
((DiameterMessageImpl) rar).getGenericData().setReTransmitted(true);
assertTrue("The 'T' flag should be set in Re-Auth-Request", rar.getHeader().isPotentiallyRetransmitted());
ReAuthAnswer raa = messageFactory.createReAuthAnswer(rar);
assertFalse("The 'T' flag should not be set in Re-Auth-Answer", raa.getHeader().isPotentiallyRetransmitted());
}
use of net.java.slee.resource.diameter.base.events.ReAuthRequest in project jain-slee.diameter by RestComm.
the class BaseFactoriesTest method testGettersAndSettersRAR.
@Test
public void testGettersAndSettersRAR() throws Exception {
ReAuthRequest rar = messageFactory.createReAuthRequest();
int nFailures = AvpAssistant.INSTANCE.testMethods(rar, ReAuthRequest.class);
assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
use of net.java.slee.resource.diameter.base.events.ReAuthRequest in project jain-slee.diameter by RestComm.
the class AuthClientSessionActivityImpl method createReAuthAnswer.
public ReAuthAnswer createReAuthAnswer() {
// Create the request. // TODO Use request used to create this activity ?
ReAuthRequest rar = messageFactory.createReAuthRequest();
rar.setAuthApplicationId(0L);
return createReAuthAnswer(rar);
}
Aggregations