Revision: 526
Author:   henryju
Date:     2006-07-07 05:56:30 -0700 (Fri, 07 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/jwebunit/?rev=526&view=rev

Log Message:
-----------
Add getTable() to WebTestCase.

Modified Paths:
--------------
    
branches/1.x/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTestCase.java
    
branches/1.x/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTester.java
Modified: 
branches/1.x/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTestCase.java
===================================================================
--- 
branches/1.x/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTestCase.java
  2006-07-06 10:23:53 UTC (rev 525)
+++ 
branches/1.x/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTestCase.java
  2006-07-07 12:56:30 UTC (rev 526)
@@ -135,8 +135,12 @@
     }
 
     public void assertNoMatch(String regexp) {
-        tester.assertNoMatch(regexp);
+        getTester().assertNoMatch(regexp);
     }
+    
+    public void getTable(String tableSummaryNameOrId) {
+        getTester().getTable(tableSummaryNameOrId);
+    }
 
     public void assertTablePresent(String tableSummaryOrId) {
         getTester().assertTablePresent(tableSummaryOrId);

Modified: 
branches/1.x/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTester.java
===================================================================
--- 
branches/1.x/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTester.java
    2006-07-06 10:23:53 UTC (rev 525)
+++ 
branches/1.x/jwebunit-core/src/main/java/net/sourceforge/jwebunit/WebTester.java
    2006-07-07 12:56:30 UTC (rev 526)
@@ -51,6 +51,7 @@
      * to using the orignal testing engine, which is, htmlunit.
      * 
      * @return IJWebUnitDialog instance used to wrapper htmlunit conversation.
+     * @deprecated You should not use plugin specific fonctionality
      */
     public IJWebUnitDialog getDialog() {
         if (dialog == null) {
@@ -293,6 +294,16 @@
     }
 
     /**
+     * 
+     * @param tableSummaryNameOrId
+     * @return Object that represent a html table in a way independent from
+     * plugin.
+     */
+    public Table getTable(String tableSummaryNameOrId) {
+        return getDialog().getTable(tableSummaryNameOrId);
+    }
+
+    /**
      * Assert that a table with a given summary or id value is present.
      * 
      * @param tableSummaryNameOrId
@@ -1576,7 +1587,7 @@
         assertFormElementPresent(formElementName);
         return getDialog().getFormParameterValue(formElementName);
     }
-
+    
     /**
      * Begin interaction with a specified form. If form interaction methods are
      * called without explicitly calling this method first, jWebUnit will


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to