1 package com.thoughtworks.xstream.converters.basic; 2 3 import junit.framework.TestCase; 4 5 import java.util.Date ; 6 import java.net.URL ; 7 import java.net.MalformedURLException ; 8 9 import com.thoughtworks.acceptance.AbstractAcceptanceTest; 10 11 public class URLConverterTest extends AbstractAcceptanceTest { 12 13 public void testConvertsToSingleString() throws MalformedURLException { 14 15 assertBothWays( 16 new URL ("http://www.apple.com:2020/path/blah.html?abc#2"), 17 "<url>http://www.apple.com:2020/path/blah.html?abc#2</url>"); 18 19 assertBothWays( 20 new URL ("file:/c:/winnt/blah.txt"), 21 "<url>file:/c:/winnt/blah.txt</url>"); 22 } 23 24 } 25 | Popular Tags |