aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-12-21 12:25:26 +0100
committerJon Marius Venstad <venstad@gmail.com>2020-12-21 12:25:26 +0100
commit057e333efb8b8efb967c048900505362726fa547 (patch)
treed1b73f5942a46284102be346033c9f09311591d9 /jdisc_core/src/test/java/com/yahoo
parent3b021b169f7836efd215e7c4bc0302715b3e56cc (diff)
Deprecate unused and complicating "priority"
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo')
-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) {