commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [05/12] commons-cli git commit: Update PatternOptionBuilderTest.java
Date Wed, 14 Jun 2017 07:57:28 GMT
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 <schaumb@users.noreply.github.com>
Authored: Mon Apr 17 16:33:42 2017 +0200
Committer: GitHub <noreply@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


Mime
View raw message