use of net.java.slee.resource.diameter.rx.events.ReAuthAnswer in project jain-slee.diameter by RestComm.
the class RxFactoriesTest method hasTFlagSetRAA.
@Test
public void hasTFlagSetRAA() throws Exception {
ReAuthRequest rar = rxMessageFactory.createReAuthRequest();
((DiameterMessageImpl) rar).getGenericData().setReTransmitted(true);
assertTrue("The 'T' flag should be set in Re-Auth-Request", rar.getHeader().isPotentiallyRetransmitted());
ReAuthAnswer raa = rxMessageFactory.createReAuthAnswer(rar);
assertFalse("The 'T' flag should not be set in Re-Auth-Answer", raa.getHeader().isPotentiallyRetransmitted());
}
use of net.java.slee.resource.diameter.rx.events.ReAuthAnswer in project jain-slee.diameter by RestComm.
the class RxFactoriesTest method hasDestinationHostRAA.
@Test
public void hasDestinationHostRAA() throws Exception {
ReAuthAnswer raa = rxMessageFactory.createReAuthAnswer(rxMessageFactory.createReAuthRequest());
assertNull("The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message. [RFC3588/6.2]", raa.getDestinationHost());
}
Aggregations