Search in sources :

Example 6 with ReAuthRequest

use of net.java.slee.resource.diameter.rx.events.ReAuthRequest in project jain-slee.diameter by RestComm.

the class RxFactoriesTest method isProxiableRAR.

@Test
public void isProxiableRAR() throws Exception {
    ReAuthRequest rar = rxMessageFactory.createReAuthRequest();
    assertTrue("The 'P' bit is not set by default in Rx' Re-Auth-Request, it should.", rar.getHeader().isProxiable());
}
Also used : ReAuthRequest(net.java.slee.resource.diameter.rx.events.ReAuthRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 7 with ReAuthRequest

use of net.java.slee.resource.diameter.rx.events.ReAuthRequest in project jain-slee.diameter by RestComm.

the class RxFactoriesTest method testGettersAndSettersRAR.

@Test
public void testGettersAndSettersRAR() throws Exception {
    ReAuthRequest rar = rxMessageFactory.createReAuthRequest();
    int nFailures = RxAvpAssistant.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.rx.events.ReAuthRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

ReAuthRequest (net.java.slee.resource.diameter.rx.events.ReAuthRequest)7 Test (org.junit.Test)7 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)7 ReAuthAnswer (net.java.slee.resource.diameter.rx.events.ReAuthAnswer)2 ApplicationId (org.jdiameter.api.ApplicationId)1 RxMessageFactoryImpl (org.mobicents.slee.resource.diameter.rx.RxMessageFactoryImpl)1