Revision: 3220 http://archive-access.svn.sourceforge.net/archive-access/?rev=3220&view=rev Author: bradtofel Date: 2010-08-10 19:55:56 +0000 (Tue, 10 Aug 2010) Log Message: ----------- simple example of Translate.decode() not doing what I think it should do... no assertions as yet Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/test/java/org/archive/wayback/util/htmllex/ParseContextTest.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/test/java/org/archive/wayback/util/htmllex/ParseContextTest.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/test/java/org/archive/wayback/util/htmllex/ParseContextTest.java 2010-08-10 19:53:24 UTC (rev 3219) +++ trunk/archive-access/projects/wayback/wayback-core/src/test/java/org/archive/wayback/util/htmllex/ParseContextTest.java 2010-08-10 19:55:56 UTC (rev 3220) @@ -28,6 +28,8 @@ import java.net.URI; import java.net.URL; +import org.htmlparser.util.Translate; + import junit.framework.TestCase; /** @@ -37,6 +39,19 @@ public class ParseContextTest extends TestCase { /** + * + */ + public void testTranslate() { + String orig = "http://foo.com/main?arg1=1&lang=2"; + String xlated = Translate.decode(orig); + System.out.format("Orig(%s) xlated(%s)\n",orig,xlated); + String orig2 = "  gaz.cgi?foo=bar&lang=2"; + String xlated2 = Translate.decode(orig2); + System.out.format("Orig2(%s) xlated2(%s)\n",orig2,xlated2); + + } + + /** * Test method for {@link org.archive.wayback.util.htmllex.ParseContext#contextualizeUrl(java.lang.String)}. */ public void testContextualizeUrl() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |