commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [04/12] commons-cli git commit: Update PatternOptionBuilderTest.java
Date Wed, 14 Jun 2017 07:57:27 GMT
Update PatternOptionBuilderTest.java

Project: http://git-wip-us.apache.org/repos/asf/commons-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-cli/commit/c1cbe9dd
Tree: http://git-wip-us.apache.org/repos/asf/commons-cli/tree/c1cbe9dd
Diff: http://git-wip-us.apache.org/repos/asf/commons-cli/diff/c1cbe9dd

Branch: refs/heads/master
Commit: c1cbe9dd69f80b627ea046095af842bfafb15803
Parents: 9039cbd
Author: Bela Schaum <schaumb@users.noreply.github.com>
Authored: Mon Apr 17 16:27:45 2017 +0200
Committer: GitHub <noreply@github.com>
Committed: Mon Apr 17 16:27:45 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/commons/cli/PatternOptionBuilderTest.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-cli/blob/c1cbe9dd/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 b74dc5e..03c9701 100644
--- a/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
+++ b/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
@@ -19,6 +19,7 @@ package org.apache.commons.cli;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
@@ -164,7 +165,7 @@ public class PatternOptionBuilderTest
         CommandLineParser parser = new PosixParser();
         CommandLine line = parser.parse(options, new String[] { "-f", "test.properties",
"-g", "build.xml" });
         
-        assertNotNull((FileInputStream) line.getOptionObject("g"));
+        assertNotNull("option g not parsed, or not FileInputStream", (FileInputStream) line.getOptionObject("g"));
         
         try
         {


Mime
View raw message