use of net.java.slee.resource.diameter.cca.events.CreditControlAnswer in project jain-slee.diameter by RestComm.
the class CCAFactoriesTest method isAnswerCCA.
@Test
public void isAnswerCCA() throws Exception {
CreditControlRequest ccr = ccaMessageFactory.createCreditControlRequest();
CreditControlAnswer cca = ccaMessageFactory.createCreditControlAnswer(ccr);
assertFalse("Request Flag in Credit-Control-Answer is set.", cca.getHeader().isRequest());
}
use of net.java.slee.resource.diameter.cca.events.CreditControlAnswer in project jain-slee.diameter by RestComm.
the class CCAFactoriesTest method hasDestinationRealmCCA.
@Test
public void hasDestinationRealmCCA() throws Exception {
CreditControlAnswer cca = ccaMessageFactory.createCreditControlAnswer(ccaMessageFactory.createCreditControlRequest("582364567346578348"));
assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", cca.getDestinationRealm());
}
Aggregations