aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java')
-rw-r--r--container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java b/container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java
index 6b8c268f4ca..4090fbc5de3 100644
--- a/container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java
+++ b/container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java
@@ -12,13 +12,12 @@ import com.yahoo.search.config.ClusterConfig;
import com.yahoo.search.searchchain.Execution;
import com.yahoo.search.test.QueryTestCase;
import com.yahoo.vespa.config.search.AttributesConfig;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
+
import java.util.ArrayList;
import java.util.List;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
+import static org.junit.jupiter.api.Assertions.*;
/**
* Check sorting validation behaves OK.
@@ -43,7 +42,7 @@ public class ValidateSortingSearcherTestCase {
}
@Test
- public void testBasicValidation() {
+ void testBasicValidation() {
assertNotNull(quoteAndTransform("+a -b +c"));
assertNotNull(quoteAndTransform("+a"));
assertNotNull(quoteAndTransform(null));
@@ -54,12 +53,12 @@ public class ValidateSortingSearcherTestCase {
}
@Test
- public void testInvalidSpec() {
+ void testInvalidSpec() {
assertNull(quoteAndTransform("+a -e +c"));
}
@Test
- public void testConfigOverride() {
+ void testConfigOverride() {
assertEquals("[ASCENDING:uca(title,en_US,TERTIARY)]", quoteAndTransform("title"));
assertEquals("[ASCENDING:uca(title,en_US,TERTIARY)]", quoteAndTransform("uca(title)"));
assertEquals("[ASCENDING:uca(title,en_US,TERTIARY)]", quoteAndTransform("+uca(title)"));
@@ -67,7 +66,7 @@ public class ValidateSortingSearcherTestCase {
}
@Test
- public void requireThatQueryLocaleIsDefault() {
+ void requireThatQueryLocaleIsDefault() {
assertEquals("[ASCENDING:lowercase(a)]", quoteAndTransform("a"));
assertEquals("[ASCENDING:uca(a,en_US,PRIMARY)]", transform("a", "en-US"));
assertEquals("[ASCENDING:uca(a,en_NO,PRIMARY)]", transform("a", "en-NO"));