use of org.apache.cxf.ws.rmp.v200502.RMAssertion.ExponentialBackoff in project cxf by apache.
the class PolicyUtilsTest method testRMAssertionEquals.
@Test
public void testRMAssertionEquals() {
RMAssertion a = new RMAssertion();
assertTrue(RMPolicyUtilities.equals(a, a));
RMAssertion b = new RMAssertion();
assertTrue(RMPolicyUtilities.equals(a, b));
InactivityTimeout iat = new RMAssertion.InactivityTimeout();
iat.setMilliseconds(new Long(10));
a.setInactivityTimeout(iat);
assertTrue(!RMPolicyUtilities.equals(a, b));
b.setInactivityTimeout(iat);
assertTrue(RMPolicyUtilities.equals(a, b));
ExponentialBackoff eb = new RMAssertion.ExponentialBackoff();
a.setExponentialBackoff(eb);
assertTrue(!RMPolicyUtilities.equals(a, b));
b.setExponentialBackoff(eb);
assertTrue(RMPolicyUtilities.equals(a, b));
}
Aggregations