summaryrefslogtreecommitdiffstats
path: root/vespaclient-java/src/test/java/com/yahoo/vespavisit/VdsVisitTestCase.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2020-08-05 09:09:29 +0200
committerGitHub <noreply@github.com>2020-08-05 09:09:29 +0200
commit78d1d7c83099639947edb423c67df4961a2cf5e4 (patch)
tree52b17fad75ba741518f59f01f0a3ab1372a8774b /vespaclient-java/src/test/java/com/yahoo/vespavisit/VdsVisitTestCase.java
parent2e82ff0ff2e24811d96c42126d81526da7ea3779 (diff)
parent2e225436140011754c7d467d5174624d4e451552 (diff)
Merge pull request #13985 from vespa-engine/balder/minor-fieldset-cleanup
Balder/minor fieldset cleanup
Diffstat (limited to 'vespaclient-java/src/test/java/com/yahoo/vespavisit/VdsVisitTestCase.java')
-rw-r--r--vespaclient-java/src/test/java/com/yahoo/vespavisit/VdsVisitTestCase.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/vespaclient-java/src/test/java/com/yahoo/vespavisit/VdsVisitTestCase.java b/vespaclient-java/src/test/java/com/yahoo/vespavisit/VdsVisitTestCase.java
index d9efe2c5129..4c8fbb1beee 100644
--- a/vespaclient-java/src/test/java/com/yahoo/vespavisit/VdsVisitTestCase.java
+++ b/vespaclient-java/src/test/java/com/yahoo/vespavisit/VdsVisitTestCase.java
@@ -1,6 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespavisit;
+import com.yahoo.document.fieldset.DocIdOnly;
import com.yahoo.document.select.parser.ParseException;
import com.yahoo.documentapi.*;
import com.yahoo.documentapi.messagebus.protocol.DocumentProtocol;
@@ -83,7 +84,7 @@ public class VdsVisitTestCase {
assertNotNull(params);
assertEquals(654321, allParams.getFullTimeout());
assertEquals(654321, params.getTimeoutMs());
- assertEquals("[id]", params.getFieldSet());
+ assertEquals(DocIdOnly.NAME, params.getFieldSet());
}
@Test
@@ -98,7 +99,7 @@ public class VdsVisitTestCase {
VisitorParameters params = allParams.getVisitorParameters();
assertNotNull(params);
- assertEquals("[id]", params.getFieldSet());
+ assertEquals(DocIdOnly.NAME, params.getFieldSet());
assertTrue(allParams.isPrintIdsOnly());
}
@@ -295,7 +296,7 @@ public class VdsVisitTestCase {
VisitorParameters params = allParams.getVisitorParameters();
assertNotNull(params);
assertEquals("foo", allParams.getStatisticsParts());
- assertEquals("[id]", params.getFieldSet());
+ assertEquals(DocIdOnly.NAME, params.getFieldSet());
assertEquals("CountVisitor", params.getVisitorLibrary());
}