KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > core > PathTest


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.core;
14
15 import java.io.File JavaDoc;
16
17 import junit.framework.TestCase;
18
19
20 /**
21  * @author fgiust
22  * @version $Revision: 6545 $ ($Author: gjoseph $)
23  */

24 public class PathTest extends TestCase {
25
26     /**
27      * Test method for {@link info.magnolia.cms.core.Path#isAbsolute(java.lang.String)}.
28      */

29     public void testIsAbsolute() {
30         assertTrue(Path.isAbsolute("/test"));
31         assertTrue(Path.isAbsolute("d:/test"));
32         assertTrue(Path.isAbsolute(File.separator + "test"));
33         assertFalse(Path.isAbsolute("test"));
34     }
35
36 }
37
Popular Tags