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\""));
+    }
 }


Reply via email to