KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > url > HttpclientURLHandlerTest


1 /*
2  * This file is subject to the license found in LICENCE.TXT in the root directory of the project.
3  *
4  * #SNAPSHOT#
5  */

6 package fr.jayasoft.ivy.url;
7
8 import java.net.URL JavaDoc;
9
10 import junit.framework.TestCase;
11
12 /**
13  * Test HttpClientHandler
14  */

15 public class HttpclientURLHandlerTest extends TestCase {
16     // remote.test
17
public void testIsReachable() throws Exception JavaDoc {
18         URLHandler handler = new HttpClientHandler();
19         assertTrue(handler.isReachable(new URL JavaDoc("http://www.google.fr/")));
20         assertFalse(handler.isReachable(new URL JavaDoc("http://www.google.fr/unknownpage.html")));
21     }
22 }
23
Popular Tags