[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/parserHelperTests StringParserTest.java,1.49,1.
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-09-02 02:28:33
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/parserHelperTests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29769/src/org/htmlparser/tests/parserHelperTests Modified Files: StringParserTest.java RemarkNodeParserTest.java Log Message: Implemented: RFE #1017249 HTML Client Doesn't Support Cookies but will follow redirect RFE #1010586 Add support for password protected URL and RFE #1000739 Add support for proxy scenario A new http package is added, the primary class being Connectionmanager which handles proxies, passwords and cookies. Some testing still needed. Also removed some line separator cruft. Index: RemarkNodeParserTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/parserHelperTests/RemarkNodeParserTest.java,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** RemarkNodeParserTest.java 18 Jul 2004 21:31:21 -0000 1.47 --- RemarkNodeParserTest.java 2 Sep 2004 02:28:16 -0000 1.48 *************** *** 27,31 **** package org.htmlparser.tests.parserHelperTests; - import org.htmlparser.Parser; import org.htmlparser.PrototypicalNodeFactory; import org.htmlparser.Remark; --- 27,30 ---- *************** *** 75,79 **** "</TEST>\n"); parser.setNodeFactory (new PrototypicalNodeFactory (true)); - Parser.setLineSeparator("\r\n"); parseAndAssertNodeCount(15); // The first node should be a Remark --- 74,77 ---- *************** *** 99,103 **** "</TEST>\n"); parser.setNodeFactory (new PrototypicalNodeFactory (true)); - Parser.setLineSeparator("\r\n"); parseAndAssertNodeCount(15); // The first node should be a Remark --- 97,100 ---- *************** *** 124,128 **** "</TEST>\n"); parser.setNodeFactory (new PrototypicalNodeFactory (true)); - Parser.setLineSeparator("\r\n"); parseAndAssertNodeCount(15); // The first node should be a Remark --- 121,124 ---- *************** *** 160,164 **** "-->"); parser.setNodeFactory (new PrototypicalNodeFactory (true)); - Parser.setLineSeparator("\r\n"); parseAndAssertNodeCount(1); assertTrue("Node should be a Remark",node[0] instanceof Remark); --- 156,159 ---- *************** *** 195,199 **** "bcd -->"); parser.setNodeFactory (new PrototypicalNodeFactory (true)); - Parser.setLineSeparator("\n"); parseAndAssertNodeCount(1); assertTrue("Node should be a Remark",node[0] instanceof Remark); --- 190,193 ---- *************** *** 217,221 **** "ssd -->"); parser.setNodeFactory (new PrototypicalNodeFactory (true)); - Parser.setLineSeparator("\n"); parseAndAssertNodeCount(1); assertTrue("Node should be a Tag but was "+node[0],node[0] instanceof Tag); --- 211,214 ---- *************** *** 225,229 **** "-\n"+ "ssd --",tag.getText()); - Parser.setLineSeparator("\r\n"); } --- 218,221 ---- Index: StringParserTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/parserHelperTests/StringParserTest.java,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** StringParserTest.java 18 Jul 2004 21:31:21 -0000 1.49 --- StringParserTest.java 2 Sep 2004 02:28:15 -0000 1.50 *************** *** 27,31 **** package org.htmlparser.tests.parserHelperTests; - import org.htmlparser.Parser; import org.htmlparser.PrototypicalNodeFactory; import org.htmlparser.Remark; --- 27,30 ---- *************** *** 81,85 **** createParser("view these documents, you must have <A href='http://www.adobe.com'>Adobe \n"+ "Acrobat Reader</A> installed on your computer."); - Parser.setLineSeparator("\r\n"); parseAndAssertNodeCount(3); // The first node should be a Text- with the text - view these documents, you must have --- 80,83 ---- |