You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2008/06/13 18:47:30 UTC
svn commit: r667592 -
/commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/GnuParserTest.java
Author: sebb
Date: Fri Jun 13 09:47:29 2008
New Revision: 667592
URL: http://svn.apache.org/viewvc?rev=667592&view=rev
Log:
Check remaining arg(s)
Modified:
commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/GnuParserTest.java
Modified: commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/GnuParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/GnuParserTest.java?rev=667592&r1=667591&r2=667592&view=diff
==============================================================================
--- commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/GnuParserTest.java (original)
+++ commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/GnuParserTest.java Fri Jun 13 09:47:29 2008
@@ -268,5 +268,8 @@
assertEquals("value 2", "1.5", values.get(1));
assertEquals("value 3", "target", values.get(2));
assertEquals("value 4", "1.5", values.get(3));
+ List argsleft = cl.getArgList();
+ assertEquals("Should be 1 arg left",1,argsleft.size());
+ assertEquals("Expecting foo","foo",argsleft.get(0));
}
}