diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-12-05 14:15:23 +0100 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-12-05 14:15:23 +0100 |
commit | 07c7b270186672af489f910bc09d3824fcf0caf7 (patch) | |
tree | 74201ced0b4ee93faa6011c07f7e0cc64bf96b8d /vespaclient-java/src/test/java/com/yahoo/vespaget | |
parent | 23e9f20ebc1b0d013bd3f95a9463a9fe92a2cb44 (diff) |
Add tensor short form output option to vespa-get
Diffstat (limited to 'vespaclient-java/src/test/java/com/yahoo/vespaget')
-rw-r--r-- | vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java | 3 | ||||
-rw-r--r-- | vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java b/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java index c448e5d55f5..9c1b16b8770 100644 --- a/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java +++ b/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java @@ -57,6 +57,7 @@ public class CommandLineOptionsTest { assertFalse(params.noRetry); assertEquals(0, params.traceLevel); assertEquals(DocumentProtocol.Priority.NORMAL_2, params.priority); + assertFalse(params.tensorShortForm); // TODO Vespa 9: change default to true } @Test @@ -70,6 +71,7 @@ public class CommandLineOptionsTest { "--noretry", "--trace", "1", "--priority", Integer.toString(DocumentProtocol.Priority.HIGH_3.getValue()), + "--tensor-short-form", "id:1", "id:2" ); @@ -81,6 +83,7 @@ public class CommandLineOptionsTest { assertTrue(params.noRetry); assertEquals(1, params.traceLevel); assertEquals(DocumentProtocol.Priority.HIGH_3, params.priority); + assertTrue(params.tensorShortForm); Iterator<String> documentsIds = params.documentIds; assertEquals("id:1", documentsIds.next()); diff --git a/vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java b/vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java index 24e303d6fce..e6fe985acbf 100644 --- a/vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java +++ b/vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java @@ -240,7 +240,7 @@ public class DocumentRetrieverTest { } @Test - void testEmtpyClusterList() throws DocumentRetrieverException { + void testEmptyClusterList() throws DocumentRetrieverException { Throwable exception = assertThrows(DocumentRetrieverException.class, () -> { ClientParameters params = createParameters() |