commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1713503 - /commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
Date Mon, 09 Nov 2015 18:17:52 GMT
Author: sebb
Date: Mon Nov  9 18:17:52 2015
New Revision: 1713503

URL: http://svn.apache.org/viewvc?rev=1713503&view=rev
Log:
Start work on VALIDATOR-380

Modified:
    commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java

Modified: commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java?rev=1713503&r1=1713502&r2=1713503&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
(original)
+++ commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
Mon Nov  9 18:17:52 2015
@@ -437,6 +437,14 @@ public class UrlValidatorTest extends Te
        assertFalse(validator.isValid("http://user:pa@ss@www.apache.org/path"));
    }
 
+   public void testValidator380() {
+       UrlValidator validator = new UrlValidator();
+       assertTrue(validator.isValid("http://www.apache.org:80/path"));       
+       assertTrue(validator.isValid("http://www.apache.org:8/path")); 
+       // To be enabled when code has been fixed
+//       assertTrue(validator.isValid("http://www.apache.org:/path"));
+   }
+
    /**
     * Only used to debug the unit tests.
     * @param argv



Mime
View raw message