polishing

This commit is contained in:
Stephane Nicoll
2014-08-08 09:37:47 +02:00
parent 3a419872c8
commit 4a1a622004
2 changed files with 10 additions and 1 deletions

View File

@@ -58,6 +58,15 @@ public class JmsListenerEndpointRegistrarTests {
registrar.registerEndpoint(new SimpleJmsListenerEndpoint(), containerFactory);
}
@Test
public void registerEmptyEndpointId() {
SimpleJmsListenerEndpoint endpoint = new SimpleJmsListenerEndpoint();
endpoint.setId("");
thrown.expect(IllegalArgumentException.class);
registrar.registerEndpoint(endpoint, containerFactory);
}
@Test
public void registerNullContainerFactoryIsAllowed() throws Exception {
SimpleJmsListenerEndpoint endpoint = new SimpleJmsListenerEndpoint();