Search in sources :

Example 11 with RoCreditControlAnswer

use of net.java.slee.resource.diameter.ro.events.RoCreditControlAnswer in project jain-slee.diameter by RestComm.

the class RoFactoriesTest method hasDestinationRealmCCA.

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

Example 12 with RoCreditControlAnswer

use of net.java.slee.resource.diameter.ro.events.RoCreditControlAnswer in project jain-slee.diameter by RestComm.

the class RoFactoriesTest method hasRoApplicationIdCCA.

@Test
public void hasRoApplicationIdCCA() throws Exception {
    RoCreditControlAnswer cca = roServerSession.createRoCreditControlAnswer();
    assertTrue("Auth-Application-Id AVP in Ro CCA must be 4, it is " + cca.getAuthApplicationId(), cca.getAuthApplicationId() == 4);
}
Also used : RoCreditControlAnswer(net.java.slee.resource.diameter.ro.events.RoCreditControlAnswer) Test(org.junit.Test) BaseFactoriesTest(org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)

Aggregations

RoCreditControlAnswer (net.java.slee.resource.diameter.ro.events.RoCreditControlAnswer)12 Test (org.junit.Test)8 BaseFactoriesTest (org.mobicents.slee.resource.diameter.base.tests.factories.BaseFactoriesTest)8 RoCreditControlRequest (net.java.slee.resource.diameter.ro.events.RoCreditControlRequest)4 IOException (java.io.IOException)3 RoServerSessionActivityImpl (org.mobicents.slee.resource.diameter.ro.RoServerSessionActivityImpl)3 ArrayList (java.util.ArrayList)2 CreateException (javax.slee.CreateException)2 SLEEException (javax.slee.SLEEException)2 MultipleServicesCreditControlAvp (net.java.slee.resource.diameter.cca.events.avp.MultipleServicesCreditControlAvp)2 RoServerSessionActivity (net.java.slee.resource.diameter.ro.RoServerSessionActivity)2 CreditControlInfo (org.mobicents.charging.server.account.CreditControlInfo)2 CreditControlUnit (org.mobicents.charging.server.account.CreditControlUnit)2 UserSessionInfo (org.mobicents.charging.server.data.UserSessionInfo)2 ActivityContextInterface (javax.slee.ActivityContextInterface)1 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)1 FinalUnitIndicationAvp (net.java.slee.resource.diameter.cca.events.avp.FinalUnitIndicationAvp)1 GrantedServiceUnitAvp (net.java.slee.resource.diameter.cca.events.avp.GrantedServiceUnitAvp)1 RequestedActionType (net.java.slee.resource.diameter.cca.events.avp.RequestedActionType)1 RequestedServiceUnitAvp (net.java.slee.resource.diameter.cca.events.avp.RequestedServiceUnitAvp)1