assertEquals("Log: Activate RemoteEventConnector for domain \"test-domain\".", theLogMessages.get(0));
assertEquals("Log: RemoteEventConnector activated.", theLogMessages.get(1));
myClientLogger.clearLogMessages();
try {
myRemoteEventConnector.initListen(new RemoteEventServiceConfigurationTransferable(0, 20000, 90000, 2, "dummy-connection-id", DefaultClientConnector.class.getName()));
fail("An exception was expected, because it was tried to change the connection strategy after the start of listening!");
} catch(RemoteEventServiceRuntimeException e) {
assertTrue(e.getMessage().contains("connection"));
assertTrue(e.getMessage().contains("strategy"));
}