aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/query/ItemLabelTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/query/ItemLabelTestCase.java')
-rw-r--r--container-search/src/test/java/com/yahoo/prelude/query/ItemLabelTestCase.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/query/ItemLabelTestCase.java b/container-search/src/test/java/com/yahoo/prelude/query/ItemLabelTestCase.java
index 06808d2c8d5..17a4ce400ff 100644
--- a/container-search/src/test/java/com/yahoo/prelude/query/ItemLabelTestCase.java
+++ b/container-search/src/test/java/com/yahoo/prelude/query/ItemLabelTestCase.java
@@ -3,9 +3,9 @@ package com.yahoo.prelude.query;
import java.lang.reflect.Modifier;
-import static org.junit.Assert.*;
-import org.junit.Test;
+import static org.junit.jupiter.api.Assertions.*;
+import org.junit.jupiter.api.Test;
import com.yahoo.search.Query;
import com.yahoo.prelude.query.textualrepresentation.Discloser;
@@ -27,13 +27,13 @@ public class ItemLabelTestCase {
}
@Test
- public final void testLabelVisibility() throws Exception {
+ final void testLabelVisibility() throws Exception {
assertTrue(Modifier.isPublic(Item.class.getMethod("setLabel", String.class).getModifiers()));
assertTrue(Modifier.isPublic(Item.class.getMethod("getLabel").getModifiers()));
}
@Test
- public final void testLabelAccess() {
+ final void testLabelAccess() {
Item item = new WordItem("word");
assertFalse(item.hasUniqueID());
assertNull(item.getLabel());
@@ -43,7 +43,7 @@ public class ItemLabelTestCase {
}
@Test
- public final void testLabelDisclose() {
+ final void testLabelDisclose() {
LabelCatcher catcher = new LabelCatcher();
Item item = new WordItem("word");
item.disclose(catcher);
@@ -54,7 +54,7 @@ public class ItemLabelTestCase {
}
@Test
- public final void testLabelEncode() {
+ final void testLabelEncode() {
Item w1 = new WordItem("w1");
Item w2 = new WordItem("w2");
Item w3 = new WordItem("w3");