diff options
author | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2020-06-17 12:48:40 +0200 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2020-06-17 12:48:40 +0200 |
commit | 91335890788b7ca2f0110e3b7e809c0e95b6790f (patch) | |
tree | 0377724cde4f541f39c997c86687c48655672961 /document | |
parent | 0f4829d8436397fbdef454a0028c9f72e9b4ea0e (diff) |
Test that Java parser already works as expected
Diffstat (limited to 'document')
-rw-r--r-- | document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java b/document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java index 2e08814bf43..9640f2883fb 100644 --- a/document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java +++ b/document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java @@ -67,6 +67,8 @@ public class DocumentSelectorTestCase { manager.registerDocumentType(new DocumentType("andornot")); manager.registerDocumentType(new DocumentType("idid")); manager.registerDocumentType(new DocumentType("usergroup")); + manager.registerDocumentType(new DocumentType("user")); + manager.registerDocumentType(new DocumentType("group")); } @Test @@ -131,6 +133,8 @@ public class DocumentSelectorTestCase { assertParse(null, "false or false_t or falsetype"); assertParse(null, "true or and_t or andtype"); assertParse(null, "true or or_t or ortype"); + assertParse(null, "user or group"); + assertParse(null, "user.foo or group.bar"); } @Test |