commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r661586 - /commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/UtilTest.java
Date Fri, 30 May 2008 08:13:17 GMT
Author: ebourg
Date: Fri May 30 01:13:16 2008
New Revision: 661586

URL: http://svn.apache.org/viewvc?rev=661586&view=rev
Log:
Added a unit test for Util.stripLeadingAndTrailingQuotes

Modified:
    commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/UtilTest.java

Modified: commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/UtilTest.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/UtilTest.java?rev=661586&r1=661585&r2=661586&view=diff
==============================================================================
--- commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/UtilTest.java (original)
+++ commons/proper/cli/branches/cli-1.x/src/test/org/apache/commons/cli/UtilTest.java Fri
May 30 01:13:16 2008
@@ -27,6 +27,11 @@
     public void testStripLeadingHyphens() {
         assertEquals("f", Util.stripLeadingHyphens("-f"));
         assertEquals("foo", Util.stripLeadingHyphens("--foo"));
+        assertEquals("-foo", Util.stripLeadingHyphens("---foo"));
         assertNull(Util.stripLeadingHyphens(null));
     }
+
+    public void testStripLeadingAndTrailingQuotes() {
+        assertEquals("foo", Util.stripLeadingAndTrailingQuotes("\"foo\""));
+    }
 }



Mime
View raw message