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/src/test | |
parent | 58b6d61bf17de39fdb01df8c9b751273395e77c5 (diff) |
Add abi spec for new constructor
Diffstat (limited to 'container-core/src/test')
-rw-r--r-- | container-core/src/test/java/com/yahoo/restapi/PathTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
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}")); } |