Search in sources :

Example 1 with ExponentialBackoff

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));
}
Also used : RMAssertion(org.apache.cxf.ws.rmp.v200502.RMAssertion) InactivityTimeout(org.apache.cxf.ws.rmp.v200502.RMAssertion.InactivityTimeout) ExponentialBackoff(org.apache.cxf.ws.rmp.v200502.RMAssertion.ExponentialBackoff) Test(org.junit.Test)

Aggregations

RMAssertion (org.apache.cxf.ws.rmp.v200502.RMAssertion)1 ExponentialBackoff (org.apache.cxf.ws.rmp.v200502.RMAssertion.ExponentialBackoff)1 InactivityTimeout (org.apache.cxf.ws.rmp.v200502.RMAssertion.InactivityTimeout)1 Test (org.junit.Test)1