summaryrefslogtreecommitdiffstats
path: root/src/test/java/com/beust/jcommander/PositiveIntegerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/beust/jcommander/PositiveIntegerTest.java')
-rw-r--r--src/test/java/com/beust/jcommander/PositiveIntegerTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/com/beust/jcommander/PositiveIntegerTest.java b/src/test/java/com/beust/jcommander/PositiveIntegerTest.java
index ec7d273..81d9b37 100644
--- a/src/test/java/com/beust/jcommander/PositiveIntegerTest.java
+++ b/src/test/java/com/beust/jcommander/PositiveIntegerTest.java
@@ -14,7 +14,7 @@ public class PositiveIntegerTest {
}
Arg arg = new Arg();
JCommander jc = new JCommander(arg);
- jc.parse(new String[] { "-p", "8080" });
+ jc.parse("-p", "8080");
}
@@ -26,7 +26,7 @@ public class PositiveIntegerTest {
}
Arg arg = new Arg();
JCommander jc = new JCommander(arg);
- jc.parse(new String[] { "-p", "" });
+ jc.parse("-p", "");
}
@Test(expectedExceptions = ParameterException.class)
@@ -37,7 +37,7 @@ public class PositiveIntegerTest {
}
Arg arg = new Arg();
JCommander jc = new JCommander(arg);
- jc.parse(new String[] { "-p", "-1" });
+ jc.parse("-p", "-1");
}
@Test(expectedExceptions = ParameterException.class)
@@ -48,7 +48,7 @@ public class PositiveIntegerTest {
}
Arg arg = new Arg();
JCommander jc = new JCommander(arg);
- jc.parse(new String[] { "-p", "abc" });
+ jc.parse("-p", "abc");
}
@Test(expectedExceptions = ParameterException.class)
@@ -60,6 +60,6 @@ public class PositiveIntegerTest {
Arg arg = new Arg();
JCommander jc = new JCommander(arg);
- jc.parse(new String[] { "--port", " " });
+ jc.parse("--port", " ");
}
} \ No newline at end of file