Search in sources :

Example 1 with AddressingConfiguration

use of org.mule.extension.ws.api.addressing.AddressingConfiguration in project mule-wsc-connector by mulesoft.

the class ConfigEqualsTestCase method testAddressingEquals.

@Test
public void testAddressingEquals() {
    EasyRandomParameters parameters = new EasyRandomParameters();
    parameters.collectionSizeRange(1, 3);
    EasyRandom factory = new EasyRandom(parameters);
    EasyRandom factory2 = new EasyRandom(parameters);
    for (int i = 0; i < 1000; i++) {
        AddressingConfiguration addressingConfiguration = factory.nextObject(AddressingConfiguration.class);
        AddressingConfiguration clonedAddressingConfiguration = factory2.nextObject(AddressingConfiguration.class);
        assertThat(addressingConfiguration, is(addressingConfiguration));
        assertThat(clonedAddressingConfiguration, is(clonedAddressingConfiguration));
        assertThat(addressingConfiguration, is(clonedAddressingConfiguration));
        assertThat(addressingConfiguration.hashCode(), is(clonedAddressingConfiguration.hashCode()));
    }
}
Also used : EasyRandomParameters(org.jeasy.random.EasyRandomParameters) AddressingConfiguration(org.mule.extension.ws.api.addressing.AddressingConfiguration) EasyRandom(org.jeasy.random.EasyRandom) Test(org.junit.Test)

Example 2 with AddressingConfiguration

use of org.mule.extension.ws.api.addressing.AddressingConfiguration in project mule-wsc-connector by mulesoft.

the class ConfigEqualsTestCase method testAddressingNotEquals.

@Test
public void testAddressingNotEquals() {
    EasyRandomParameters parameters = new EasyRandomParameters();
    parameters.collectionSizeRange(1, 3);
    EasyRandom factory = new EasyRandom(parameters);
    AddressingConfiguration addressingConfiguration = factory.nextObject(AddressingConfiguration.class);
    assertThat(addressingConfiguration, is(notNullValue()));
    assertThat(addressingConfiguration, not(equalTo(new Object())));
}
Also used : EasyRandomParameters(org.jeasy.random.EasyRandomParameters) AddressingConfiguration(org.mule.extension.ws.api.addressing.AddressingConfiguration) EasyRandom(org.jeasy.random.EasyRandom) Test(org.junit.Test)

Aggregations

EasyRandom (org.jeasy.random.EasyRandom)2 EasyRandomParameters (org.jeasy.random.EasyRandomParameters)2 Test (org.junit.Test)2 AddressingConfiguration (org.mule.extension.ws.api.addressing.AddressingConfiguration)2