diff options
author | toby <smorgrav@yahoo-inc.com> | 2019-03-20 09:22:03 +0100 |
---|---|---|
committer | toby <smorgrav@yahoo-inc.com> | 2019-03-20 09:22:03 +0100 |
commit | cf6e756cdf0ce088167f7618294753313665efee (patch) | |
tree | 907a7daa511dfad1a9d30a108bd5f235d882fe8a /container-core | |
parent | 58b6d61bf17de39fdb01df8c9b751273395e77c5 (diff) |
Add abi spec for new constructor
Diffstat (limited to 'container-core')
-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}")); } |