use of org.mule.extension.ws.api.reliablemessaging.ReliableMessagingConfiguration in project mule-wsc-connector by mulesoft.
the class ConfigEqualsTestCase method testReliableMessagingNotEquals.
@Test
public void testReliableMessagingNotEquals() {
EasyRandomParameters parameters = new EasyRandomParameters();
parameters.collectionSizeRange(1, 3);
EasyRandom factory = new EasyRandom(parameters);
ReliableMessagingConfiguration reliableMessaging = factory.nextObject(ReliableMessagingConfiguration.class);
assertThat(reliableMessaging, is(notNullValue()));
assertThat(reliableMessaging, not(equalTo(new Object())));
}
use of org.mule.extension.ws.api.reliablemessaging.ReliableMessagingConfiguration in project mule-wsc-connector by mulesoft.
the class RMConfigInitialiseTestCase method defaultWsrmVersionFromWsa2004VersionTest.
@Test
public void defaultWsrmVersionFromWsa2004VersionTest() throws InitialisationException {
EasyRandom factory = new EasyRandom(parameters.randomize(String.class, () -> null));
ReliableMessagingConfiguration config = factory.nextObject(ReliableMessagingConfiguration.class);
config.doInitialise(WSA200408, initialisable);
assertEquals(WSRM_10_WSA_200408, config.getVersion());
}
use of org.mule.extension.ws.api.reliablemessaging.ReliableMessagingConfiguration in project mule-wsc-connector by mulesoft.
the class RMConfigInitialiseTestCase method doInitialiseTest.
@Test
public void doInitialiseTest() throws InitialisationException {
AddressingVersion wsaVersion = WSA200408;
ReliableMessagingVersion wsrmVersion = WSRM_10_WSA_200408;
EasyRandom factory = new EasyRandom(parameters.randomize(String.class, () -> wsrmVersion.name()));
ReliableMessagingConfiguration config = factory.nextObject(ReliableMessagingConfiguration.class);
config.doInitialise(wsaVersion, initialisable);
assertEquals(wsrmVersion, config.getVersion());
}
use of org.mule.extension.ws.api.reliablemessaging.ReliableMessagingConfiguration in project mule-wsc-connector by mulesoft.
the class RMConfigInitialiseTestCase method defaultWsrmVersionFromWsa2005VersionTest.
@Test
public void defaultWsrmVersionFromWsa2005VersionTest() throws InitialisationException {
EasyRandom factory = new EasyRandom(parameters.randomize(String.class, () -> null));
ReliableMessagingConfiguration config = factory.nextObject(ReliableMessagingConfiguration.class);
config.doInitialise(WSA200508, initialisable);
assertEquals(WSRM_11_WSA_200508, config.getVersion());
}
use of org.mule.extension.ws.api.reliablemessaging.ReliableMessagingConfiguration in project mule-wsc-connector by mulesoft.
the class RMConfigInitialiseTestCase method failConfigInitWithInvalidPairOfWsaWsrmVersionsTest.
@Test
public void failConfigInitWithInvalidPairOfWsaWsrmVersionsTest() throws InitialisationException {
AddressingVersion wsaVersion = WSA200408;
ReliableMessagingVersion wsrmVersion = WSRM_11_WSA_200508;
expectedException.expect(InitialisationException.class);
expectedException.expectMessage("Invalid WSRM version configured [" + wsrmVersion.name() + "] for the selected WSA version [" + wsaVersion.name() + "].");
EasyRandom factory = new EasyRandom(parameters.randomize(String.class, () -> wsrmVersion.name()));
ReliableMessagingConfiguration config = factory.nextObject(ReliableMessagingConfiguration.class);
config.doInitialise(wsaVersion, initialisable);
}
Aggregations