[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/tagTests BaseHrefTagTest.java,1.39,1.40
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-03-18 04:13:46
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24099/src/org/htmlparser/tests/tagTests Modified Files: BaseHrefTagTest.java Log Message: Deprecate LinkProcessor. Functionality moved to Page. Index: BaseHrefTagTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests/BaseHrefTagTest.java,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** BaseHrefTagTest.java 14 Jan 2004 02:53:47 -0000 1.39 --- BaseHrefTagTest.java 18 Mar 2004 04:04:08 -0000 1.40 *************** *** 33,37 **** import org.htmlparser.tags.TitleTag; import org.htmlparser.tests.ParserTestCase; - import org.htmlparser.util.LinkProcessor; import org.htmlparser.util.ParserException; --- 33,36 ---- *************** *** 53,65 **** } - public void testRemoveLastSlash() { - String url1 = "http://www.yahoo.com/"; - String url2 = "http://www.google.com"; - String modifiedUrl1 = LinkProcessor.removeLastSlash(url1); - String modifiedUrl2 = LinkProcessor.removeLastSlash(url2); - assertEquals("Url1","http://www.yahoo.com",modifiedUrl1); - assertEquals("Url2","http://www.google.com",modifiedUrl2); - } - public void testScan() throws ParserException{ createParser("<html><head><TITLE>test page</TITLE><BASE HREF=\"http://www.abc.com/\"><a href=\"home.cfm\">Home</a>...</html>","http://www.google.com/test/index.html"); --- 52,55 ---- |