Search in sources :

Example 6 with GqSessionTerminationAnswer

use of net.java.slee.resource.diameter.gq.events.GqSessionTerminationAnswer in project jain-slee.diameter by RestComm.

the class GqFactoriesTest method hasDestinationHostSTA.

@Test
public void hasDestinationHostSTA() throws Exception {
    GqSessionTerminationAnswer sta = gqMessageFactory.createGqSessionTerminationAnswer(gqMessageFactory.createGqSessionTerminationRequest());
    assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", sta.getDestinationHost());
}
Also used : GqSessionTerminationAnswer(net.java.slee.resource.diameter.gq.events.GqSessionTerminationAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Example 7 with GqSessionTerminationAnswer

use of net.java.slee.resource.diameter.gq.events.GqSessionTerminationAnswer in project jain-slee.diameter by RestComm.

the class GqFactoriesTest method hasDestinationRealmSTA.

@Test
public void hasDestinationRealmSTA() throws Exception {
    GqSessionTerminationAnswer sta = gqMessageFactory.createGqSessionTerminationAnswer(gqMessageFactory.createGqSessionTerminationRequest());
    assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", sta.getDestinationRealm());
}
Also used : GqSessionTerminationAnswer(net.java.slee.resource.diameter.gq.events.GqSessionTerminationAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

GqSessionTerminationAnswer (net.java.slee.resource.diameter.gq.events.GqSessionTerminationAnswer)7 Test (org.junit.Test)7 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)7 GqSessionTerminationRequest (net.java.slee.resource.diameter.gq.events.GqSessionTerminationRequest)2 ApplicationId (org.jdiameter.api.ApplicationId)1 GqMessageFactoryImpl (org.mobicents.slee.resource.diameter.gq.GqMessageFactoryImpl)1