Search in sources :

Example 6 with ReAuthAnswer

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

the class RxFactoriesTest method hasTFlagSetRAA.

@Test
public void hasTFlagSetRAA() throws Exception {
    ReAuthRequest rar = rxMessageFactory.createReAuthRequest();
    ((DiameterMessageImpl) rar).getGenericData().setReTransmitted(true);
    assertTrue("The 'T' flag should be set in Re-Auth-Request", rar.getHeader().isPotentiallyRetransmitted());
    ReAuthAnswer raa = rxMessageFactory.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.rx.events.ReAuthRequest) ReAuthAnswer(net.java.slee.resource.diameter.rx.events.ReAuthAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 7 with ReAuthAnswer

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

the class RxFactoriesTest method hasDestinationHostRAA.

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

Aggregations

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