use of net.java.slee.resource.diameter.gq.events.GqReAuthRequest in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method testGettersAndSettersRAR.
@Test
public void testGettersAndSettersRAR() throws Exception {
GqReAuthRequest rar = gqMessageFactory.createGqReAuthRequest();
int nFailures = GqAvpAssistant.INSTANCE.testMethods(rar, GqReAuthRequest.class);
assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
use of net.java.slee.resource.diameter.gq.events.GqReAuthRequest in project jain-slee.diameter by RestComm.
the class GqFactoriesTest method isRequestRAR.
// Re-Auth-Request
@Test
public void isRequestRAR() throws Exception {
GqReAuthRequest rar = gqMessageFactory.createGqReAuthRequest();
assertTrue("Request Flag in Re-Auth-Request is not set.", rar.getHeader().isRequest());
}
use of net.java.slee.resource.diameter.gq.events.GqReAuthRequest in project jain-slee.diameter by RestComm.
the class GqMessageFactoryImpl method createGqReAuthRequest.
@Override
public GqReAuthRequest createGqReAuthRequest() {
Message raw = createRequest(GqReAuthRequest.COMMAND_CODE, new DiameterAvp[] {});
GqReAuthRequest rar = new GqReAuthRequestImpl(raw);
if (sessionId != null) {
rar.setSessionId(sessionId);
}
addOrigin(rar);
return rar;
}
use of net.java.slee.resource.diameter.gq.events.GqReAuthRequest in project jain-slee.diameter by RestComm.
the class GqMessageFactoryImpl method createGqReAuthRequest.
@Override
public GqReAuthRequest createGqReAuthRequest(String sessionId) {
Message raw = createRequest(GqReAuthRequest.COMMAND_CODE, new DiameterAvp[] {});
GqReAuthRequest rar = new GqReAuthRequestImpl(raw);
rar.setSessionId(sessionId);
addOrigin(rar);
return rar;
}
Aggregations