Update of /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16199/src/net/sourceforge/jwebunit
Modified Files:
HttpUnitDialog.java WebTester.java WebTestCase.java
Log Message:
Added patch for issue 1005396
Index: WebTester.java
===================================================================
RCS file: /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit/WebTester.java,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** WebTester.java 28 Jul 2004 17:39:06 -0000 1.49
--- WebTester.java 29 Aug 2004 19:04:26 -0000 1.50
***************
*** 17,34 ****
/**
* Provides a high-level API for basic web application navigation and validation
! * by wrapping HttpUnit and providing Junit assertions. It supports use of a
property file for web
! * resources (a la Struts), though a resource file for the app is not required.
! *
! * @author Jim Weaver
! * @author Wilkes Joiner
*/
public class WebTester {
private HttpUnitDialog dialog;
[...1995 lines suppressed...]
*/
public void dumpTable(String tableNameOrId, String[][] table) {
! dialog.dumpTable(tableNameOrId, table);
}
/**
! * Dump the table as the 2D array that is used for assertions - for
! * debugging purposes.
! *
* @param tableNameOrId
* @param table
* @param stream
*/
! public void dumpTable(String tableNameOrId, String[][] table,
! PrintStream stream) {
! dialog.dumpTable(tableNameOrId, table, stream);
}
! }
\ No newline at end of file
Index: HttpUnitDialog.java
===================================================================
RCS file: /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit/HttpUnitDialog.java,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** HttpUnitDialog.java 28 Jul 2004 17:39:05 -0000 1.44
--- HttpUnitDialog.java 29 Aug 2004 19:04:26 -0000 1.45
***************
*** 20,26 ****
/**
! * Acts as the wrapper for HttpUnit access. A dialog is initialized with a given
URL, and maintains conversational
! * state as the dialog progresses through link navigation, form submission, etc.
Public access is provided for
! * wrappered HttpUnit objects.
*
* @author Jim Weaver
--- 20,27 ----
/**
[...2252 lines suppressed...]
! * debugging purposes.
! *
! * @param tableNameOrId
! * @param table
! * @param stream
! */
! public void dumpTable(String tableNameOrId, String[][] table,
! PrintStream stream) {
! stream.print("\n" + tableNameOrId + ":");
! for (int i = 0; i < table.length; i++) {
! String[] cell = table[i];
! stream.print("\n\t");
! for (int j = 0; j < cell.length; j++) {
! stream.print("[" + cell[j] + "]");
! }
! }
! }
!
! }
\ No newline at end of file
Index: WebTestCase.java
===================================================================
RCS file: /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit/WebTestCase.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** WebTestCase.java 28 Jul 2004 17:39:06 -0000 1.46
--- WebTestCase.java 29 Aug 2004 19:04:26 -0000 1.47
***************
*** 244,247 ****
--- 244,255 ----
}
+ public void assertButtonPresentWithText(String text) {
+ tester.assertButtonPresentWithText(text);
+ }
+
+ public void assertButtonNotPresentWithText(String text) {
+ tester.assertButtonNotPresentWithText(text);
+ }
+
public void assertButtonNotPresent(String buttonID) {
tester.assertButtonNotPresent(buttonID);
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development