mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-29 18:59:03 +00:00
polishing
This commit is contained in:
+9
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user