aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-04-25 21:30:22 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2021-04-25 21:30:22 +0200
commita9ac18e9ff6ca6691076b8dcf00e7c00012a2d1e (patch)
treefbd87ca32b6f3e6c813a515b684d114f145a62a0 /config-model/src/test/java/com
parentfae3066f17edd78d752a06b442953636c0d9b55c (diff)
Allow btree index to be case sensitiv.
Diffstat (limited to 'config-model/src/test/java/com')
-rw-r--r--config-model/src/test/java/com/yahoo/searchdefinition/processing/DictionaryTestCase.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/processing/DictionaryTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/processing/DictionaryTestCase.java
index 47122ccac88..df0d58d3c8a 100644
--- a/config-model/src/test/java/com/yahoo/searchdefinition/processing/DictionaryTestCase.java
+++ b/config-model/src/test/java/com/yahoo/searchdefinition/processing/DictionaryTestCase.java
@@ -138,11 +138,7 @@ public class DictionaryTestCase {
}
@Test
public void testStringBtreeCasedSettings() throws ParseException {
- try {
- verifyStringDictionaryControl(Dictionary.Type.BTREE, Case.CASED, Case.CASED, "dictionary { btree\ncased\n}");
- } catch (IllegalArgumentException e) {
- assertEquals("For search 'test', field 'n1': btree dictionary require uncased match", e.getMessage());
- }
+ verifyStringDictionaryControl(Dictionary.Type.BTREE, Case.CASED, Case.CASED, "dictionary { btree\ncased\n}", "match:cased");
}
@Test
public void testStringHashSettings() throws ParseException {
@@ -186,7 +182,7 @@ public class DictionaryTestCase {
try {
verifyStringDictionaryControl(Dictionary.Type.BTREE_AND_HASH, Case.CASED, Case.CASED, "dictionary { btree\nhash\ncased\n}");
} catch (IllegalArgumentException e) {
- assertEquals("For search 'test', field 'n1': btree dictionary require uncased match", e.getMessage());
+ assertEquals("For search 'test', field 'n1': Dictionary casing 'CASED' does not match field match casing 'UNCASED'", e.getMessage());
}
}
@Test