commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1651529 - /commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
Date Tue, 13 Jan 2015 22:39:27 GMT
Author: sebb
Date: Tue Jan 13 22:39:27 2015
New Revision: 1651529

URL: http://svn.apache.org/r1651529
Log:
Document fact about html tld file

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

Modified: commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java?rev=1651529&r1=1651528&r2=1651529&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
(original)
+++ commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
Tue Jan 13 22:39:27 2015
@@ -241,6 +241,8 @@ public class DomainValidatorTest extends
         File txtFile = new File("target/tlds-alpha-by-domain.txt");
         long timestamp = download(txtFile, "http://data.iana.org/TLD/tlds-alpha-by-domain.txt",
0L);
         final File htmlFile = new File("target/tlds-alpha-by-domain.html");
+        // N.B. sometimes the html file may be updated a day or so after the txt file
+        // if the txt file contains entries not found in the html file, try again in a day
or two
         download(htmlFile,"http://www.iana.org/domains/root/db", timestamp);
 
         BufferedReader br = new BufferedReader(new FileReader(txtFile));



Mime
View raw message