make some test methods public to fix build

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-06-04 09:26:35 +10:00
parent ff8ae56fa9
commit 38f56f5973
5 changed files with 12 additions and 12 deletions

View File

@ -307,7 +307,7 @@ public class PathMappingsTest
}
@Test
void testPutRejectsDuplicates()
public void testPutRejectsDuplicates()
{
PathMappings<String> p = new PathMappings<>();
assertThat(p.put(new UriTemplatePathSpec("/a/{var1}/c"), "resourceA"), is(true));
@ -322,7 +322,7 @@ public class PathMappingsTest
}
@Test
void testGetUriTemplatePathSpec()
public void testGetUriTemplatePathSpec()
{
PathMappings<String> p = new PathMappings<>();
p.put(new UriTemplatePathSpec("/a/{var1}/c"), "resourceA");
@ -336,7 +336,7 @@ public class PathMappingsTest
}
@Test
void testGetRegexPathSpec()
public void testGetRegexPathSpec()
{
PathMappings<String> p = new PathMappings<>();
p.put(new RegexPathSpec("/a/b/c"), "resourceA");
@ -353,7 +353,7 @@ public class PathMappingsTest
}
@Test
void testGetServletPathSpec()
public void testGetServletPathSpec()
{
PathMappings<String> p = new PathMappings<>();
p.put(new ServletPathSpec("/"), "resourceA");
@ -372,7 +372,7 @@ public class PathMappingsTest
}
@Test
void testRemoveUriTemplatePathSpec()
public void testRemoveUriTemplatePathSpec()
{
PathMappings<String> p = new PathMappings<>();
@ -401,7 +401,7 @@ public class PathMappingsTest
}
@Test
void testRemoveRegexPathSpec()
public void testRemoveRegexPathSpec()
{
PathMappings<String> p = new PathMappings<>();
@ -427,7 +427,7 @@ public class PathMappingsTest
}
@Test
void testRemoveServletPathSpec()
public void testRemoveServletPathSpec()
{
PathMappings<String> p = new PathMappings<>();

View File

@ -136,7 +136,7 @@ public class RegexPathSpecTest
}
@Test
void testEquals()
public void testEquals()
{
assertThat(new RegexPathSpec("^(.*).do$"), equalTo(new RegexPathSpec("^(.*).do$")));
assertThat(new RegexPathSpec("/foo"), equalTo(new RegexPathSpec("/foo")));

View File

@ -191,7 +191,7 @@ public class ServletPathSpecTest
}
@Test
void testEquals()
public void testEquals()
{
assertThat(new ServletPathSpec("*.gz"), equalTo(new ServletPathSpec("*.gz")));
assertThat(new ServletPathSpec("/foo"), equalTo(new ServletPathSpec("/foo")));

View File

@ -285,7 +285,7 @@ public class UriTemplatePathSpecTest
}
@Test
void testEquals()
public void testEquals()
{
assertThat(new UriTemplatePathSpec("/{var1}"), equalTo(new UriTemplatePathSpec("/{var1}")));
assertThat(new UriTemplatePathSpec("/{var1}"), equalTo(new UriTemplatePathSpec("/{var2}")));

View File

@ -128,7 +128,7 @@ public class ProxyCustomizerTest
}
@Test
void testProxyCustomizerWithProxyData() throws Exception
public void testProxyCustomizerWithProxyData() throws Exception
{
String proxy =
// Preamble
@ -159,7 +159,7 @@ public class ProxyCustomizerTest
}
@Test
void testProxyCustomizerWithoutProxyData() throws Exception
public void testProxyCustomizerWithoutProxyData() throws Exception
{
String proxy = "";
String http = "GET /1 HTTP/1.1\r\n" +