use of net.java.slee.resource.diameter.base.events.ReAuthAnswer 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.ReAuthAnswer in project jain-slee.diameter by RestComm.
the class BaseFactoriesTest method testGettersAndSettersRAA.
@Test
public void testGettersAndSettersRAA() throws Exception {
ReAuthAnswer raa = messageFactory.createReAuthAnswer(messageFactory.createReAuthRequest());
int nFailures = AvpAssistant.INSTANCE.testMethods(raa, ReAuthAnswer.class);
assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
use of net.java.slee.resource.diameter.base.events.ReAuthAnswer in project jain-slee.diameter by RestComm.
the class DiameterMessageFactoryImpl method createReAuthAnswer.
public ReAuthAnswer createReAuthAnswer(ReAuthRequest request, DiameterAvp[] avps) throws AvpNotAllowedException {
ReAuthAnswer msg = (ReAuthAnswer) this.createDiameterMessage(request.getHeader(), avps, Message.RE_AUTH_ANSWER, getApplicationId(request));
// Add Session-Id AVP if not present
addSessionIdAvp(msg);
return msg;
}
Aggregations