diff options
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.java | 12 |
1 files changed, 12 insertions, 0 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 0a0b4290cc1..05f8964e516 100644 --- a/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java +++ b/vespaclient-java/src/test/java/com/yahoo/vespaget/CommandLineOptionsTest.java @@ -124,6 +124,18 @@ public class CommandLineOptionsTest { } @Test + public void TestHighestPriority() { + ClientParameters params = getParsedOptions("--priority", "HIGHEST"); + assertEquals(DocumentProtocol.Priority.HIGHEST, params.priority); + } + + @Test + public void TestHigh1PriorityAsNumber() { + ClientParameters params = getParsedOptions("--priority", "2"); + assertEquals(DocumentProtocol.Priority.HIGH_1, params.priority); + } + + @Test public void testInvalidTraceLevel1() { exception.expect(IllegalArgumentException.class); exception.expectMessage("Invalid tracelevel: -1"); |