diff options
-rw-r--r-- | container-core/abi-spec.json | 1 | ||||
-rw-r--r-- | container-core/src/test/java/com/yahoo/restapi/PathTest.java | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/container-core/abi-spec.json b/container-core/abi-spec.json index dc13bd1807d..ae45ee94596 100644 --- a/container-core/abi-spec.json +++ b/container-core/abi-spec.json @@ -872,6 +872,7 @@ ], "methods": [ "public void <init>(java.lang.String)", + "public void <init>(java.lang.String, java.lang.String)", "public boolean matches(java.lang.String)", "public java.lang.String get(java.lang.String)", "public java.lang.String getRest()", diff --git a/container-core/src/test/java/com/yahoo/restapi/PathTest.java b/container-core/src/test/java/com/yahoo/restapi/PathTest.java index 566209d941b..886b3ba9c87 100644 --- a/container-core/src/test/java/com/yahoo/restapi/PathTest.java +++ b/container-core/src/test/java/com/yahoo/restapi/PathTest.java @@ -14,13 +14,13 @@ public class PathTest { @Test public void testWithPrefix() { - // Test that a path with a prefix matches spec + // Test that a path with a prefix matches spec without the prefix Path path = new Path("/ball/a/1/bar/fuz", "/ball"); assertTrue(path.matches("/a/{foo}/bar/{b}")); assertEquals("1", path.get("foo")); assertEquals("fuz", path.get("b")); - // One negative test where the prefix should not count + // Also test that prefix does not cause false matches assertFalse(path.matches("/ball/a/{foo}/zoo/{b}")); } |