Update of /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5222/src/net/sourceforge/jwebunit
Modified Files:
HttpUnitDialog.java
Log Message:
Renamed hasButtonByValue to hasButtonWithText in accordance with previous
rename refactoring in IJWebUnitDialog.
Index: HttpUnitDialog.java
===================================================================
RCS file:
/cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit/HttpUnitDialog.java,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** HttpUnitDialog.java 7 Dec 2005 05:55:13 -0000 1.57
--- HttpUnitDialog.java 7 Dec 2005 06:07:23 -0000 1.58
***************
*** 512,521 ****
* @return <code>true</code> when the button with text could be found.
*/
! public boolean hasButtonByValue(String text) {
! boolean bReturn = getButtonByValue(text) != null ? true : false;
return bReturn;
}
! public Button getButtonByValue(String buttonValueText) {
Button theButton = null;
Button[] buttons = getForm().getButtons();
--- 512,521 ----
* @return <code>true</code> when the button with text could be found.
*/
! public boolean hasButtonWithText(String text) {
! boolean bReturn = getButtonWithText(text) != null ? true : false;
return bReturn;
}
! public Button getButtonWithText(String buttonValueText) {
Button theButton = null;
Button[] buttons = getForm().getButtons();
***************
*** 1099,1104 ****
public void clickButtonWithText(String buttonValueText) {
try {
! if(hasButtonByValue(buttonValueText)) {
! getButtonByValue(buttonValueText).click();
resp = wc.getCurrentPage();
}
--- 1099,1104 ----
public void clickButtonWithText(String buttonValueText) {
try {
! if(hasButtonWithText(buttonValueText)) {
! getButtonWithText(buttonValueText).click();
resp = wc.getCurrentPage();
}
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development