You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2017/06/14 07:57:28 UTC
[05/12] commons-cli git commit: Update PatternOptionBuilderTest.java
Update PatternOptionBuilderTest.java
-.-' sry
Project: http://git-wip-us.apache.org/repos/asf/commons-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-cli/commit/e3d65b0e
Tree: http://git-wip-us.apache.org/repos/asf/commons-cli/tree/e3d65b0e
Diff: http://git-wip-us.apache.org/repos/asf/commons-cli/diff/e3d65b0e
Branch: refs/heads/master
Commit: e3d65b0ee3b08599bd787a7721afc326d1bcccf1
Parents: c1cbe9d
Author: Bela Schaum <sc...@users.noreply.github.com>
Authored: Mon Apr 17 16:33:42 2017 +0200
Committer: GitHub <no...@github.com>
Committed: Mon Apr 17 16:33:42 2017 +0200
----------------------------------------------------------------------
.../org/apache/commons/cli/PatternOptionBuilderTest.java | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-cli/blob/e3d65b0e/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java b/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
index 03c9701..b7c1fb3 100644
--- a/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
+++ b/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
@@ -166,15 +166,7 @@ public class PatternOptionBuilderTest
CommandLine line = parser.parse(options, new String[] { "-f", "test.properties", "-g", "build.xml" });
assertNotNull("option g not parsed, or not FileInputStream", (FileInputStream) line.getOptionObject("g"));
-
- try
- {
- line.getOptionObject("f");
- fail("ParseException wasn't thrown");
- }
- catch (ParseException e)
- {
- }
+ assertNull("option f parsed", (FileInputStream) line.getOptionObject("f"));
}
@Test