Fix typos
Closes gh-3809
This commit is contained in:
@@ -114,7 +114,7 @@ public abstract class AbstractConfigurableEmbeddedServletContainer implements
|
||||
}
|
||||
if (!contextPath.startsWith("/") || contextPath.endsWith("/")) {
|
||||
throw new IllegalArgumentException(
|
||||
"ContextPath must start with '/ and not end with '/'");
|
||||
"ContextPath must start with '/' and not end with '/'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,14 +245,14 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
|
||||
@Test
|
||||
public void contextPathMustStartWithSlash() throws Exception {
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage("ContextPath must start with '/ and not end with '/'");
|
||||
this.thrown.expectMessage("ContextPath must start with '/' and not end with '/'");
|
||||
getFactory().setContextPath("missingslash");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void contextPathMustNotEndWithSlash() throws Exception {
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage("ContextPath must start with '/ and not end with '/'");
|
||||
this.thrown.expectMessage("ContextPath must start with '/' and not end with '/'");
|
||||
getFactory().setContextPath("extraslash/");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user