KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > util > URLUtilitiesTest


1 /*
2  * Created on Aug 30, 2004
3  */

4 package com.openedit.util;
5
6 import com.openedit.BaseTestCase;
7
8 /**
9  * @author Eric Broyles <eric.broyles@ugs.com>
10  */

11 public class URLUtilitiesTest extends BaseTestCase
12 {
13
14     public URLUtilitiesTest( String JavaDoc arg0 )
15     {
16         super( arg0 );
17         // TODO Auto-generated constructor stub
18
}
19
20     public static void main(String JavaDoc[] args)
21     {
22         junit.textui.TestRunner.run(URLUtilitiesTest.class);
23     }
24     
25     public void testGetPathWithoutContext()
26     {
27         String JavaDoc path = URLUtilities.getPathWithoutContext("/resellerportal", "/include.jsp", "index.html");
28         assertEquals("/include.jsp", path);
29     }
30
31 }
32
Popular Tags