@@ -17,22 +17,22 @@ class UrlUtilsTest {
1717
1818 @ Test
1919 void testWebUrls () {
20- assertTrue (UrlUtils .isValidWebUrl ("http://www.pharmgkb .org" ));
21- assertTrue (UrlUtils .isValidWebUrl ("http://www.pharmgkb .org/bar.txt" ));
22- assertTrue (UrlUtils .isValidWebUrl ("http://www.pharmgkb .org:8080" ));
23- assertTrue (UrlUtils .isValidWebUrl ("http://www.pharmgkb .org:8080/bar.txt" ));
24- assertTrue (UrlUtils .isValidWebUrl ("http://hi:there@www.pharmgkb .org/" ));
25-
26- assertTrue (UrlUtils .isValidWebUrl ("https://www.pharmgkb .org" ));
27- assertTrue (UrlUtils .isValidWebUrl ("https://www.pharmgkb .org/bar.txt" ));
28- assertTrue (UrlUtils .isValidWebUrl ("https://www.pharmgkb .org:8080" ));
29- assertTrue (UrlUtils .isValidWebUrl ("https://www.pharmgkb .org:8080/bar.txt" ));
30- assertTrue (UrlUtils .isValidWebUrl ("https://hi:there@www.pharmgkb .org/" ));
31-
32- assertFalse (UrlUtils .isValidWebUrl ("ftp://www.pharmgkb .org" ));
33- assertFalse (UrlUtils .isValidWebUrl ("ftp://www.pharmgkb .org/bar.txt" ));
34- assertFalse (UrlUtils .isValidWebUrl ("ftp://hi:there@www.pharmgkb .org:8080" ));
35- assertFalse (UrlUtils .isValidWebUrl ("ftp://hi:there@www.pharmgkb .org:8080/bar.txt" ));
20+ assertTrue (UrlUtils .isValidWebUrl ("http://www.clinpgx .org" ));
21+ assertTrue (UrlUtils .isValidWebUrl ("http://www.clinpgx .org/bar.txt" ));
22+ assertTrue (UrlUtils .isValidWebUrl ("http://www.clinpgx .org:8080" ));
23+ assertTrue (UrlUtils .isValidWebUrl ("http://www.clinpgx .org:8080/bar.txt" ));
24+ assertTrue (UrlUtils .isValidWebUrl ("http://hi:there@www.clinpgx .org/" ));
25+
26+ assertTrue (UrlUtils .isValidWebUrl ("https://www.clinpgx .org" ));
27+ assertTrue (UrlUtils .isValidWebUrl ("https://www.clinpgx .org/bar.txt" ));
28+ assertTrue (UrlUtils .isValidWebUrl ("https://www.clinpgx .org:8080" ));
29+ assertTrue (UrlUtils .isValidWebUrl ("https://www.clinpgx .org:8080/bar.txt" ));
30+ assertTrue (UrlUtils .isValidWebUrl ("https://hi:there@www.clinpgx .org/" ));
31+
32+ assertFalse (UrlUtils .isValidWebUrl ("ftp://www.clinpgx .org" ));
33+ assertFalse (UrlUtils .isValidWebUrl ("ftp://www.clinpgx .org/bar.txt" ));
34+ assertFalse (UrlUtils .isValidWebUrl ("ftp://hi:there@www.clinpgx .org:8080" ));
35+ assertFalse (UrlUtils .isValidWebUrl ("ftp://hi:there@www.clinpgx .org:8080/bar.txt" ));
3636
3737 assertTrue (UrlUtils .isValidWebUrl ("http://171.67.192.16" ));
3838 assertTrue (UrlUtils .isValidWebUrl ("http://171.67.192.16:8080" ));
@@ -64,22 +64,22 @@ void testWebUrls() {
6464
6565 @ Test
6666 void testUrls () {
67- assertTrue (UrlUtils .isValid ("http://www.pharmgkb .org" ));
68- assertTrue (UrlUtils .isValid ("http://www.pharmgkb .org/bar.txt" ));
69- assertTrue (UrlUtils .isValid ("http://www.pharmgkb .org:8080" ));
70- assertTrue (UrlUtils .isValid ("http://www.pharmgkb .org:8080/bar.txt" ));
71- assertTrue (UrlUtils .isValid ("http://hi:there@www.pharmgkb .org/" ));
72-
73- assertTrue (UrlUtils .isValid ("https://www.pharmgkb .org" ));
74- assertTrue (UrlUtils .isValid ("https://www.pharmgkb .org/bar.txt" ));
75- assertTrue (UrlUtils .isValid ("https://www.pharmgkb .org:8080" ));
76- assertTrue (UrlUtils .isValid ("https://www.pharmgkb .org:8080/bar.txt" ));
77- assertTrue (UrlUtils .isValid ("https://hi:there@www.pharmgkb .org/" ));
78-
79- assertTrue (UrlUtils .isValid ("ftp://www.pharmgkb .org" ));
80- assertTrue (UrlUtils .isValid ("ftp://www.pharmgkb .org/bar.txt" ));
81- assertTrue (UrlUtils .isValid ("ftp://hi:there@www.pharmgkb .org:8080" ));
82- assertTrue (UrlUtils .isValid ("ftp://hi:there@www.pharmgkb .org:8080/bar.txt" ));
67+ assertTrue (UrlUtils .isValid ("http://www.clinpgx .org" ));
68+ assertTrue (UrlUtils .isValid ("http://www.clinpgx .org/bar.txt" ));
69+ assertTrue (UrlUtils .isValid ("http://www.clinpgx .org:8080" ));
70+ assertTrue (UrlUtils .isValid ("http://www.clinpgx .org:8080/bar.txt" ));
71+ assertTrue (UrlUtils .isValid ("http://hi:there@www.clinpgx .org/" ));
72+
73+ assertTrue (UrlUtils .isValid ("https://www.clinpgx .org" ));
74+ assertTrue (UrlUtils .isValid ("https://www.clinpgx .org/bar.txt" ));
75+ assertTrue (UrlUtils .isValid ("https://www.clinpgx .org:8080" ));
76+ assertTrue (UrlUtils .isValid ("https://www.clinpgx .org:8080/bar.txt" ));
77+ assertTrue (UrlUtils .isValid ("https://hi:there@www.clinpgx .org/" ));
78+
79+ assertTrue (UrlUtils .isValid ("ftp://www.clinpgx .org" ));
80+ assertTrue (UrlUtils .isValid ("ftp://www.clinpgx .org/bar.txt" ));
81+ assertTrue (UrlUtils .isValid ("ftp://hi:there@www.clinpgx .org:8080" ));
82+ assertTrue (UrlUtils .isValid ("ftp://hi:there@www.clinpgx .org:8080/bar.txt" ));
8383
8484 assertTrue (UrlUtils .isValid ("http://171.67.192.16" ));
8585 assertTrue (UrlUtils .isValid ("http://171.67.192.16:8080" ));
@@ -127,8 +127,8 @@ void testLocalAndPrivateUrls() {
127127 @ Test
128128 void testIsReachableUrl () throws Exception {
129129
130- assertTrue (UrlUtils .isReachable (new URL ("http://www.pharmgkb .org" )));
131- assertTrue (UrlUtils .isReachable (new URL ("https://www.pharmgkb .org" )));
130+ assertTrue (UrlUtils .isReachable (new URL ("http://www.clinpgx .org" )));
131+ assertTrue (UrlUtils .isReachable (new URL ("https://www.clinpgx .org" )));
132132 assertTrue (UrlUtils .isReachable (new URL ("ftp://mirrors.sonic.net/cygwin/" )));
133133 assertTrue (UrlUtils .isReachable (new URL ("ftp://anonymous:foo%40bar.com@ftp.swfwmd.state.fl.us/pub/README.txt" )));
134134 }
@@ -137,7 +137,7 @@ void testIsReachableUrl() throws Exception {
137137 @ Test
138138 void testVerify () {
139139
140- assertTrue (UrlUtils .isValid ("http://www.pharmgkb .org" , true , false , false , true ));
141- assertFalse (UrlUtils .isValid ("http://www.pharmgkboo .org" , true , false , false , true ));
140+ assertTrue (UrlUtils .isValid ("http://www.clinpgx .org" , true , false , false , true ));
141+ assertFalse (UrlUtils .isValid ("http://www.clinpgxoops .org" , true , false , false , true ));
142142 }
143143}
0 commit comments