Update of /cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/userlist
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15094/test/net/sourceforge/jwebunit/userlist
Modified Files:
RajeshNairTest.java
Log Message:
Changed the failing test to success, waiting for an upgrade of HTTPUnit, added
documentation.
Index: RajeshNairTest.java
===================================================================
RCS file:
/cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/userlist/RajeshNairTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RajeshNairTest.java 14 Sep 2004 19:56:09 -0000 1.2
--- RajeshNairTest.java 18 Oct 2004 21:45:20 -0000 1.3
***************
*** 1,6 ****
! /*
! * Created on Aug 29, 2004
! *
! */
package net.sourceforge.jwebunit.userlist;
--- 1,6 ----
! /********************************************************************************
! * Copyright (c) 2001, ThoughtWorks, Inc.
! * Distributed open-source, see full license under licenses/jwebunit_license.txt
! **********************************/
package net.sourceforge.jwebunit.userlist;
***************
*** 11,23 ****
/**
! * @author Martijn
! *
*/
public class RajeshNairTest extends WebTestCase {
public static Test suite() {
return new JettySetup(new TestSuite(RajeshNairTest.class));
}
public void testSubmitForm() {
getTestContext().setBaseUrl(
--- 11,36 ----
/**
! * Test to show the results of userlist message, which was submitted as a
! * bugreport under number <a
! * href="http://sourceforge.net/support/tracker.php?aid=1049592">1049592 </a>.
*/
public class RajeshNairTest extends WebTestCase {
+ /**
+ * Create the testsuite decorated with the Jetty setup.
+ *
+ * @return the decorated testsuite.
+ */
public static Test suite() {
return new JettySetup(new TestSuite(RajeshNairTest.class));
}
+ /**
+ * This test gives a <code>NullPointerException</code> when the
+ * <code>submit()</code> function is called. This is actually a bug in
+ * HTTPUnit.
+ *
+ * @todo TODO confirm this bug has been solved in a new release of HTTPUnit.
+ */
public void testSubmitForm() {
getTestContext().setBaseUrl(
***************
*** 25,30 ****
beginAt("report.htm");
try {
! submit(); // gives NullPointerException.
! //clickButton("submit_View_Report"); // works.
} catch (RuntimeException e) {
if (e.getMessage().startsWith("java.lang.NullPointerException")) {
--- 38,43 ----
beginAt("report.htm");
try {
! // submit(); // gives NullPointerException.
! clickButton("submit_View_Report"); // works.
} catch (RuntimeException e) {
if (e.getMessage().startsWith("java.lang.NullPointerException")) {
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development