Search in sources :

Example 6 with ReAuthRequest

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());
}
Also used : ReAuthRequest(net.java.slee.resource.diameter.base.events.ReAuthRequest) ReAuthAnswer(net.java.slee.resource.diameter.base.events.ReAuthAnswer) Test(org.junit.Test)

Example 7 with ReAuthRequest

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);
}
Also used : ReAuthRequest(net.java.slee.resource.diameter.base.events.ReAuthRequest) Test(org.junit.Test)

Example 8 with ReAuthRequest

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);
}
Also used : ReAuthRequest(net.java.slee.resource.diameter.base.events.ReAuthRequest)

Aggregations

ReAuthRequest (net.java.slee.resource.diameter.base.events.ReAuthRequest)8 Test (org.junit.Test)5 ReAuthAnswer (net.java.slee.resource.diameter.base.events.ReAuthAnswer)2