Update of /cvsroot/httpunit/httpunit/doc
In directory usw-pr-cvs1:/tmp/cvs-serv29932/doc
Modified Files:
faq.html release_notes.txt
Log Message:
Minor bug fixes
Index: faq.html
===================================================================
RCS file: /cvsroot/httpunit/httpunit/doc/faq.html,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- faq.html 30 Aug 2002 18:32:14 -0000 1.16
+++ faq.html 5 Sep 2002 14:46:55 -0000 1.17
@@ -16,6 +16,7 @@
<LI><A HREF="#reload">Why do I get java.lang.IllegalAccessError when calling getResponse()?</A></LI>
<LI><A HREF="#badPost">Why doesn't my servlet see parameters on a POST request?</A></LI>
<LI><A HREF="#hidden">Why can't I change hidden parameters?</A></LI>
+<LI><A HREF="#badType">The server is not sending a valid content type. How do I test HTML pages anyway?</A></LI>
</OL>
@@ -99,6 +100,13 @@
the underlying value in the form. This will behave the way JavaScript does - resetting the form will now restore this value,
rather than the original one.
</ul>
+
+<A name="#badType"><h2>The server is not sending a valid content type. How do I test HTML pages anyway?</h2></A>
+By default, HttpUnit assumes a content type of "text/plain" unless the server sends the Content-Type header to override
+it, as most servers do. If yours is not, you can
+call<blockquote><code>HttpUnitOptions.setDefaultContentType( "text/html" );</code></blockquote>before running your tests.
+If you are using JUnit, call this method in your <code>setUp()</code> method.
+
</BODY></HTML>
Index: release_notes.txt
===================================================================
RCS file: /cvsroot/httpunit/httpunit/doc/release_notes.txt,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -r1.154 -r1.155
--- release_notes.txt 30 Aug 2002 18:19:38 -0000 1.154
+++ release_notes.txt 5 Sep 2002 14:46:55 -0000 1.155
@@ -11,6 +11,13 @@
Revision History:
+ 5-Sep-2002
+
+Problems fixed:
+ 1. An attempt to set a non-existent parameter now correctly throws NoSuchParameterException rather
+ than UnusedParameterValueException.
+ 2. Obtaining the URL from a javascript: request no longer throws MalformedURLException.
+
30-Aug-2002 1.4.5
Acknowledgements:
Thanks to Steve Heath for an example on how to make JSPs work with ServletUnit.
|