summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-03-10 14:49:42 +0000
committerArne H Juul <arnej@yahooinc.com>2022-03-10 14:49:42 +0000
commit690cae24a97ef53f7efe5ac8aec1527d04ce7530 (patch)
tree50886d34d9d2c37ea1d14ccf18d5592092ab7ab6 /config-model/src/test/java/com/yahoo
parent15643ef4ca66e82c82c706d7e1942bab32922f26 (diff)
avoid conflicting settings
* unit test had multiple conflicting settings for the same field; that will be rejected soon.
Diffstat (limited to 'config-model/src/test/java/com/yahoo')
-rw-r--r--config-model/src/test/java/com/yahoo/searchdefinition/derived/SortingTestCase.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/SortingTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/SortingTestCase.java
index 7989bff3152..1e4556c0de1 100644
--- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/SortingTestCase.java
+++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/SortingTestCase.java
@@ -1,6 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.derived;
+import com.yahoo.config.model.deploy.TestProperties;
import com.yahoo.searchdefinition.parser.ParseException;
import org.junit.Test;
@@ -14,6 +15,13 @@ import java.io.IOException;
public class SortingTestCase extends AbstractExportingTestCase {
@Test
public void testDocumentDeriving() throws IOException, ParseException {
- assertCorrectDeriving("sorting");
+ assertCorrectDeriving("sorting",
+ new TestProperties().setExperimentalSdParsing(false));
+ }
+
+ @Test
+ public void testDocumentDerivingNewParser() throws IOException, ParseException {
+ assertCorrectDeriving("sorting",
+ new TestProperties().setExperimentalSdParsing(true));
}
}