Search in sources :

Example 11 with ResetRequest

use of net.java.slee.resource.diameter.s6a.events.ResetRequest in project jain-slee.diameter by RestComm.

the class S6aFactoriesTest method hasDestinationHostRSA.

@Test
public void hasDestinationHostRSA() throws Exception {
    ResetRequest rsr = s6aMessageFactory.createResetRequest();
    clientSession.fetchSessionData(rsr);
    ResetAnswer rsa = clientSession.createResetAnswer();
    assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", rsa.getDestinationHost());
}
Also used : ResetAnswer(net.java.slee.resource.diameter.s6a.events.ResetAnswer) ResetRequest(net.java.slee.resource.diameter.s6a.events.ResetRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 12 with ResetRequest

use of net.java.slee.resource.diameter.s6a.events.ResetRequest in project jain-slee.diameter by RestComm.

the class S6aFactoriesTest method isProxiableRSR.

@Test
public void isProxiableRSR() throws Exception {
    ResetRequest rsr = s6aMessageFactory.createResetRequest();
    assertTrue("The 'P' bit is not set by default in Reset-Request it should.", rsr.getHeader().isProxiable());
}
Also used : ResetRequest(net.java.slee.resource.diameter.s6a.events.ResetRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 13 with ResetRequest

use of net.java.slee.resource.diameter.s6a.events.ResetRequest in project jain-slee.diameter by RestComm.

the class S6aFactoriesTest method isRequestRSR.

@Test
public void isRequestRSR() throws Exception {
    ResetRequest rsr = s6aMessageFactory.createResetRequest();
    assertTrue("Request Flag in Reset-Request is not set.", rsr.getHeader().isRequest());
}
Also used : ResetRequest(net.java.slee.resource.diameter.s6a.events.ResetRequest) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

ResetRequest (net.java.slee.resource.diameter.s6a.events.ResetRequest)13 Test (org.junit.Test)11 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)11 ResetAnswer (net.java.slee.resource.diameter.s6a.events.ResetAnswer)8 ApplicationId (org.jdiameter.api.ApplicationId)2 S6aMessageFactoryImpl (org.mobicents.slee.resource.diameter.s6a.S6aMessageFactoryImpl)2 DiameterAvp (net.java.slee.resource.diameter.base.events.avp.DiameterAvp)1 InternalException (org.jdiameter.api.InternalException)1