aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'jdisc_core/src/test')
-rw-r--r--jdisc_core/src/test/java/com/yahoo/jdisc/application/UriPatternTestCase.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/application/UriPatternTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/application/UriPatternTestCase.java
index d2499bbf369..4b5ff271dfa 100644
--- a/jdisc_core/src/test/java/com/yahoo/jdisc/application/UriPatternTestCase.java
+++ b/jdisc_core/src/test/java/com/yahoo/jdisc/application/UriPatternTestCase.java
@@ -173,12 +173,14 @@ public class UriPatternTestCase {
}
@Test
+ @SuppressWarnings("removal")
public void requireThatPrioritiesAreOrderedDescending() {
assertCompareLt(new UriPattern("scheme://host:69/path", 1),
new UriPattern("scheme://host:69/path", 0));
}
@Test
+ @SuppressWarnings("removal")
public void requireThatPriorityOrdersBeforeScheme() {
assertCompareLt(new UriPattern("*://host:69/path", 1),
new UriPattern("scheme://host:69/path", 0));
@@ -314,7 +316,7 @@ public class UriPatternTestCase {
}
private static void assertCompareLt(String lhs, String rhs) {
- assertCompareLt(new UriPattern(lhs, 0), new UriPattern(rhs, 0));
+ assertCompareLt(new UriPattern(lhs), new UriPattern(rhs));
}
private static void assertCompareLt(UriPattern lhs, UriPattern rhs) {
@@ -322,7 +324,7 @@ public class UriPatternTestCase {
}
private static void assertCompareEq(String lhs, String rhs) {
- assertCompareEq(new UriPattern(lhs, 0), new UriPattern(rhs, 0));
+ assertCompareEq(new UriPattern(lhs), new UriPattern(rhs));
}
private static void assertCompareEq(UriPattern lhs, UriPattern rhs) {