Update of /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28575/src/net/sourceforge/jwebunit

Modified Files:
        WebTester.java WebTestCase.java 
Log Message:
jw: patch 1004243, allow dialog setter

Index: WebTester.java
===================================================================
RCS file: /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit/WebTester.java,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** WebTester.java      20 Sep 2004 15:18:50 -0000      1.52
--- WebTester.java      30 Sep 2004 16:11:57 -0000      1.53
***************
*** 43,46 ****
--- 43,56 ----
  
      /**
+      * Set a specific HttpUnitDialog to be used by this tester.  Not for normal
+      * use.  If you need to transmit dialog state from one tester to another, this
+      * may be useful.
+      * 
+      */
+     public void setDialog(HttpUnitDialog dialog) {
+         this.dialog = dialog;
+     }
+ 
+     /**
       * Provide access to test context.
       * 
***************
*** 990,994 ****
       * @param value
       */
!     protected void setFormElementWithLabel(String formElementLabel, String value) {
          String name = dialog.getFormElementNameForLabel(formElementLabel);
          Assert.assertNotNull("Did not find form element with label ["
--- 1000,1004 ----
       * @param value
       */
!     public void setFormElementWithLabel(String formElementLabel, String value) {
          String name = dialog.getFormElementNameForLabel(formElementLabel);
          Assert.assertNotNull("Did not find form element with label ["

Index: WebTestCase.java
===================================================================
RCS file: /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit/WebTestCase.java,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** WebTestCase.java    20 Sep 2004 15:18:50 -0000      1.49
--- WebTestCase.java    30 Sep 2004 16:11:57 -0000      1.50
***************
*** 29,33 ****
      }
  
!     protected WebTester getTester() {
          return tester;
      }
--- 29,33 ----
      }
  
!     public WebTester getTester() {
          return tester;
      }
***************
*** 341,365 ****
      }
  
!     protected void setFormElement(String formElementName, String value) {
          tester.setFormElement(formElementName, value);
      }
  
!     protected void setFormElementWithLabel(String formElementLabel, String value) {
          tester.setFormElementWithLabel(formElementLabel, value);
      }
  
!     protected void checkCheckbox(String checkBoxName) {
          tester.checkCheckbox(checkBoxName);
      }
  
!     protected void checkCheckbox(String checkBoxName, String value) {
          tester.checkCheckbox(checkBoxName, value);
      }
  
!     protected void uncheckCheckbox(String checkBoxName) {
          tester.uncheckCheckbox(checkBoxName);
      }
  
!     protected void uncheckCheckbox(String checkBoxName, String value) {
          tester.uncheckCheckbox(checkBoxName, value);
      }
--- 341,365 ----
      }
  
!     public void setFormElement(String formElementName, String value) {
          tester.setFormElement(formElementName, value);
      }
  
!     public void setFormElementWithLabel(String formElementLabel, String value) {
          tester.setFormElementWithLabel(formElementLabel, value);
      }
  
!     public void checkCheckbox(String checkBoxName) {
          tester.checkCheckbox(checkBoxName);
      }
  
!     public void checkCheckbox(String checkBoxName, String value) {
          tester.checkCheckbox(checkBoxName, value);
      }
  
!     public void uncheckCheckbox(String checkBoxName) {
          tester.uncheckCheckbox(checkBoxName);
      }
  
!     public void uncheckCheckbox(String checkBoxName, String value) {
          tester.uncheckCheckbox(checkBoxName, value);
      }
***************
*** 371,375 ****
      // Form submission and link navigation methods
  
!     protected void submit() {
          tester.submit();
      }
--- 371,375 ----
      // Form submission and link navigation methods
  
!     public void submit() {
          tester.submit();
      }
***************
*** 387,411 ****
      }
  
!     protected void clickLinkWithText(String linkText) {
          tester.clickLinkWithText(linkText);
      }
  
!     protected void clickLinkWithText(String linkText, int index) {
          tester.clickLinkWithText(linkText, index);
      }
  
!     protected void clickLinkWithTextAfterText(String linkText, String labelText) {
          tester.clickLinkWithTextAfterText(linkText, labelText);
      }
  
!     protected void clickLinkWithImage(String imageFileName) {
          tester.clickLinkWithImage(imageFileName);
      }
  
!     protected void clickLink(String linkId) {
          tester.clickLink(linkId);
      }
  
!     protected void clickButton(String buttonId) {
          tester.clickButton(buttonId);
      }
--- 387,411 ----
      }
  
!     public void clickLinkWithText(String linkText) {
          tester.clickLinkWithText(linkText);
      }
  
!     public void clickLinkWithText(String linkText, int index) {
          tester.clickLinkWithText(linkText, index);
      }
  
!     public void clickLinkWithTextAfterText(String linkText, String labelText) {
          tester.clickLinkWithTextAfterText(linkText, labelText);
      }
  
!     public void clickLinkWithImage(String imageFileName) {
          tester.clickLinkWithImage(imageFileName);
      }
  
!     public void clickLink(String linkId) {
          tester.clickLink(linkId);
      }
  
!     public void clickButton(String buttonId) {
          tester.clickButton(buttonId);
      }



-------------------------------------------------------
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

Reply via email to