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()));
}
}
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())));
}
Aggregations