summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-10-08 10:43:34 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2018-10-08 10:43:34 +0200
commit174e5351aeebe2d14718c89271380b8bfa393949 (patch)
tree75124d8174cd585739e1daca98b653f13041784d /container-search/src/test/java/com
parent8dd6d260b3dcdf3d4b4f7c61ce49b9a2157e6a66 (diff)
Use parenthesis to ensure correct evaluation order.
Diffstat (limited to 'container-search/src/test/java/com')
-rw-r--r--container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java b/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java
index 11862d84414..4ffccccae10 100644
--- a/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java
+++ b/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java
@@ -228,14 +228,14 @@ public class VdsVisitorTestCase {
//System.out.println("params="+params);
// Verify parameters based on properties
if (qa.userId != null) {
- assertEquals(docType + " and id.user=="+qa.userId, params.getDocumentSelection());
+ assertEquals(docType + " and ( id.user=="+qa.userId + " )", params.getDocumentSelection());
} else if (qa.groupName != null) {
- assertEquals(docType + " and id.group==\""+qa.groupName+"\"", params.getDocumentSelection());
+ assertEquals(docType + " and ( id.group==\""+qa.groupName+"\" )", params.getDocumentSelection());
} else if (qa.selection != null) {
if (qa.selection.isEmpty()) {
assertEquals(docType, params.getDocumentSelection());
} else {
- assertEquals(docType + " and " + qa.selection, params.getDocumentSelection());
+ assertEquals(docType + " and ( " + qa.selection + " )", params.getDocumentSelection());
}
} else {
assertEquals("", params.getDocumentSelection());