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());
}
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);
}
Aggregations