Support custom UriTemplateHandler in LocalHostUriTemplateHandler
See gh-13208
This commit is contained in:
committed by
Stephane Nicoll
parent
48cf025093
commit
d31dbac69e
@@ -50,6 +50,13 @@ public class LocalHostUriTemplateHandlerTests {
|
||||
new LocalHostUriTemplateHandler(new MockEnvironment(), null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createWhenHandlerIsNullShouldThrowException() {
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage("Handler must not be null");
|
||||
new LocalHostUriTemplateHandler(new MockEnvironment(), "http", null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getRootUriShouldUseLocalServerPort() {
|
||||
MockEnvironment environment = new MockEnvironment();
|
||||
|
||||
Reference in New Issue
Block a user