01: /* ****************************************************************************
02: * XMLUtils_Test.java
03: * ****************************************************************************/
04:
05: /* J_LZ_COPYRIGHT_BEGIN *******************************************************
06: * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
07: * Use is subject to license terms. *
08: * J_LZ_COPYRIGHT_END *********************************************************/
09:
10: package org.openlaszlo.xml.internal;
11:
12: import java.io.*;
13: import java.util.*;
14: import junit.framework.*;
15:
16: /*
17: * junit.awtui.TestRunner
18: * junit.swingui.TestRunner
19: * junit.textui.TestRunner
20: *
21: * java junit.textui.TestRunner org.openlaszlo.utils.XMLUtils_Test
22: *
23: * @author Oliver Steele
24: */
25:
26: public class XMLUtils_Test extends TestCase {
27: public XMLUtils_Test(String name) {
28: super (name);
29: }
30:
31: public void setUp() {
32: }
33:
34: public void testPathnameFunctions() {
35: assertTrue(XMLUtils.isURL("http:foo"));
36: assertTrue(XMLUtils.isURL("file:foo"));
37: assertTrue(XMLUtils.isURL("https:foo"));
38: assertTrue(XMLUtils.isURL("soap:foo"));
39: assertTrue(XMLUtils.isURL("ftp:foo"));
40: assertTrue(!XMLUtils.isURL("a/b"));
41: assertTrue(!XMLUtils.isURL("/a/b"));
42: assertTrue(!XMLUtils.isURL("c:/a/b"));
43: }
44: }
|