Search in sources :

Example 6 with AbortSessionRequest

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

the class RxFactoriesTest method testGettersAndSettersASR.

@Test
public void testGettersAndSettersASR() throws Exception {
    AbortSessionRequest asr = rxMessageFactory.createAbortSessionRequest();
    int nFailures = RxAvpAssistant.INSTANCE.testMethods(asr, AbortSessionRequest.class);
    assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
Also used : AbortSessionRequest(net.java.slee.resource.diameter.rx.events.AbortSessionRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 7 with AbortSessionRequest

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

the class RxFactoriesTest method isProxiableASR.

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

Aggregations

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