Search in sources :

Example 6 with AbortSessionAnswer

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

the class RxFactoriesTest method hasDestinationRealmASA.

@Test
public void hasDestinationRealmASA() throws Exception {
    AbortSessionAnswer asa = rxMessageFactory.createAbortSessionAnswer(rxMessageFactory.createAbortSessionRequest());
    assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", asa.getDestinationRealm());
}
Also used : AbortSessionAnswer(net.java.slee.resource.diameter.rx.events.AbortSessionAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 7 with AbortSessionAnswer

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

the class RxFactoriesTest method isAnswerASA.

// Abort-Session-Answer
@Test
public void isAnswerASA() throws Exception {
    AbortSessionAnswer asa = rxMessageFactory.createAbortSessionAnswer(rxMessageFactory.createAbortSessionRequest());
    assertFalse("Request Flag in Abort-Session-Answer is set.", asa.getHeader().isRequest());
}
Also used : AbortSessionAnswer(net.java.slee.resource.diameter.rx.events.AbortSessionAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

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