[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit/parsing JTidyPrintWriterTest.java,1.1,1.
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-12-25 15:23:14
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/parsing
In directory sc8-pr-cvs1:/tmp/cvs-serv12005/test/com/meterware/httpunit/parsing
Modified Files:
JTidyPrintWriterTest.java
Log Message:
General cleanup of the parser classes
Index: JTidyPrintWriterTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/parsing/JTidyPrintWriterTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JTidyPrintWriterTest.java 24 Dec 2002 17:17:04 -0000 1.1
+++ JTidyPrintWriterTest.java 25 Dec 2002 15:23:11 -0000 1.2
@@ -2,7 +2,7 @@
/********************************************************************************************************************
* $Id$
*
-* Copyright (c) 2001, Russell Gold.
+* Copyright (c) 2001-2002, Russell Gold.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
@@ -19,22 +19,25 @@
* DEALINGS IN THE SOFTWARE.
*
*******************************************************************************************************************/
+import com.meterware.httpunit.HttpUnitTest;
+import com.meterware.httpunit.HttpUnitOptions;
+import com.meterware.httpunit.WebConversation;
+import com.meterware.httpunit.WebRequest;
+import com.meterware.httpunit.GetMethodWebRequest;
import java.net.URL;
import java.io.PrintWriter;
import junit.framework.Test;
import junit.framework.TestSuite;
-import com.meterware.httpunit.parsing.JTidyPrintWriter;
-import com.meterware.httpunit.*;
/**
* Unit tests for valid HTML test. This is using the JTidy callback feature.
*
* @author <a href="mailto:bx...@bi...">Benoit Xhenseval</a>
- * @author <a href="mailto:rus...@ac...">Russell Gold</a>
+ * @author <a href="mailto:rus...@ht...">Russell Gold</a>
**/
-public class JTidyPrintWriterTest extends HttpUnitTest implements HtmlErrorListener {
+public class JTidyPrintWriterTest extends HttpUnitTest implements HTMLParserListener {
public static void main(String[] args) {
junit.textui.TestRunner.run( suite() );
@@ -52,14 +55,14 @@
public void setUp() throws Exception {
super.setUp();
- HttpUnitOptions.setParserWarningsEnabled(true);
- HttpUnitOptions.addHtmlErrorListener(this);
+ HTMLParserFactory.setParserWarningsEnabled(true);
+ HTMLParserFactory.addHTMLParserListener(this);
}
public void tearDown() throws Exception {
HttpUnitOptions.resetDefaultCharacterSet();
HttpUnitOptions.setAutoRefresh( false );
- HttpUnitOptions.removeHtmlErrorListener(this);
+ HTMLParserFactory.removeHTMLParserListener(this);
super.tearDown();
}
|