aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java')
-rw-r--r--vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java19
1 files changed, 3 insertions, 16 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 05f8964e516..8848b6f1e7f 100644
--- a/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java
+++ b/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java
@@ -89,23 +89,9 @@ public class CommandLineOptionsTest {
}
@Test
- public void testInvalidCombination1() {
- exception.expect(IllegalArgumentException.class);
- exception.expectMessage("Print ids and headers only options are mutually exclusive.");
- getParsedOptions("--headersonly", "--printids");
- }
-
- @Test
- public void testInvalidCombination2() {
- exception.expect(IllegalArgumentException.class);
- exception.expectMessage("Field set option can not be used in combination with print ids or headers only options.");
- getParsedOptions("--headersonly", "--fieldset", "[header]");
- }
-
- @Test
public void testInvalidCombination3() {
exception.expect(IllegalArgumentException.class);
- exception.expectMessage("Field set option can not be used in combination with print ids or headers only options.");
+ exception.expectMessage("Field set option can not be used in combination with print ids option.");
getParsedOptions("--printids", "--fieldset", "[header]");
}
@@ -157,8 +143,9 @@ public class CommandLineOptionsTest {
@Test
public void testHeadersOnly() {
+ exception.expect(IllegalArgumentException.class);
+ exception.expectMessage("Headers only option has been removed.");
ClientParameters params = getParsedOptions("--headersonly");
- assertEquals("[header]", params.fieldSet);
}
@Test