1 4 5 9 10 package org.openlaszlo.xml.internal; 11 import java.io.*; 12 import java.util.*; 13 import junit.framework.*; 14 15 24 25 public class XMLUtils_Test extends TestCase { 26 public XMLUtils_Test(String name) { 27 super(name); 28 } 29 30 public void setUp() { 31 } 32 33 public void testPathnameFunctions() { 34 assertTrue(XMLUtils.isURL("http:foo")); 35 assertTrue(XMLUtils.isURL("file:foo")); 36 assertTrue(XMLUtils.isURL("https:foo")); 37 assertTrue(XMLUtils.isURL("soap:foo")); 38 assertTrue(XMLUtils.isURL("ftp:foo")); 39 assertTrue(!XMLUtils.isURL("a/b")); 40 assertTrue(!XMLUtils.isURL("/a/b")); 41 assertTrue(!XMLUtils.isURL("c:/a/b")); 42 } 43 } 44 | Popular Tags |