Search in sources :

Example 6 with GqReAuthRequest

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

Example 7 with GqReAuthRequest

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

Example 8 with GqReAuthRequest

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;
}
Also used : GqReAuthRequestImpl(org.mobicents.slee.resource.diameter.gq.events.GqReAuthRequestImpl) Message(org.jdiameter.api.Message) DiameterMessage(net.java.slee.resource.diameter.base.events.DiameterMessage) GqReAuthRequest(net.java.slee.resource.diameter.gq.events.GqReAuthRequest)

Example 9 with GqReAuthRequest

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;
}
Also used : GqReAuthRequestImpl(org.mobicents.slee.resource.diameter.gq.events.GqReAuthRequestImpl) Message(org.jdiameter.api.Message) DiameterMessage(net.java.slee.resource.diameter.base.events.DiameterMessage) GqReAuthRequest(net.java.slee.resource.diameter.gq.events.GqReAuthRequest)

Aggregations

GqReAuthRequest (net.java.slee.resource.diameter.gq.events.GqReAuthRequest)9 Test (org.junit.Test)7 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)7 DiameterMessage (net.java.slee.resource.diameter.base.events.DiameterMessage)2 GqReAuthAnswer (net.java.slee.resource.diameter.gq.events.GqReAuthAnswer)2 Message (org.jdiameter.api.Message)2 GqReAuthRequestImpl (org.mobicents.slee.resource.diameter.gq.events.GqReAuthRequestImpl)2 ApplicationId (org.jdiameter.api.ApplicationId)1 GqMessageFactoryImpl (org.mobicents.slee.resource.diameter.gq.GqMessageFactoryImpl)1