Fix typos

Closes gh-3809
This commit is contained in:
izeye
2015-08-22 17:02:54 +09:00
committed by Stephane Nicoll
parent 69fcae6b44
commit e2119d3329
6 changed files with 16 additions and 16 deletions

View File

@@ -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 '/'");
}
}
}

View File

@@ -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/");
}