Revision: 586
http://svn.sourceforge.net/jwebunit/?rev=586&view=rev
Author: henryju
Date: 2006-10-17 05:48:07 -0700 (Tue, 17 Oct 2006)
Log Message:
-----------
Refactor IJWebUnitDialog interface (much smaller).
Continue refactoring of unit tests.
PART 5 (due to sourceforge bug).
Modified Paths:
--------------
trunk/jwebunit-core/pom.xml
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/IJWebUnitDialog.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/JWebUnitTester.java
trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/TableTest.java
Modified: trunk/jwebunit-core/pom.xml
===================================================================
--- trunk/jwebunit-core/pom.xml 2006-10-17 12:46:18 UTC (rev 585)
+++ trunk/jwebunit-core/pom.xml 2006-10-17 12:48:07 UTC (rev 586)
@@ -9,11 +9,12 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>jwebunit-core</artifactId>
<name>Core - API</name>
- <description>The core API of jWebUnit. Define how tests should be
written.</description>
+ <description>The core API of JWebUnit. Contains all "intelligent" methods
and interfaces.</description>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>regexp</groupId>
Modified:
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/IJWebUnitDialog.java
===================================================================
---
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/IJWebUnitDialog.java
2006-10-17 12:46:18 UTC (rev 585)
+++
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/IJWebUnitDialog.java
2006-10-17 12:48:07 UTC (rev 586)
@@ -5,19 +5,19 @@
package net.sourceforge.jwebunit;
import java.net.URL;
+import java.util.List;
import net.sourceforge.jwebunit.exception.ElementNotFoundException;
import net.sourceforge.jwebunit.exception.TestingEngineResponseException;
import net.sourceforge.jwebunit.html.SelectOption;
import net.sourceforge.jwebunit.html.Table;
import net.sourceforge.jwebunit.locator.ClickableHtmlElementLocator;
-import net.sourceforge.jwebunit.locator.HtmlFormLocator;
import net.sourceforge.jwebunit.locator.FrameLocator;
-import net.sourceforge.jwebunit.locator.HtmlCheckboxLocator;
import net.sourceforge.jwebunit.locator.HtmlElementLocator;
import net.sourceforge.jwebunit.locator.HtmlOptionLocator;
import net.sourceforge.jwebunit.locator.HtmlSelectLocator;
import net.sourceforge.jwebunit.locator.HtmlTableLocator;
+import net.sourceforge.jwebunit.locator.HtmlTextAreaLocator;
import net.sourceforge.jwebunit.locator.WindowLocator;
/**
@@ -125,56 +125,79 @@
/**
* Test if the given frame is present.
*
- * @param frame a frame locator.
+ * @param frame
+ * a frame locator.
*/
boolean hasFrame(FrameLocator frame);
/**
* Make the frame with the given name active in the current conversation.
*
- * @param frame a frame locator.
+ * @param frame
+ * a frame locator.
*/
void gotoFrame(FrameLocator frame);
/**
- * Set the form on the current page that the client wishes to work with.
+ * Count number of frame in current context.
*
- * @param form
- * a form locator.
*/
- void setWorkingForm(HtmlFormLocator form) throws ElementNotFoundException;
+ int getFrameCount();
/**
* Get the current value of a html element's attribut.
- * @param htmlElement a locator.
- * @param attribut name of the attribut (e.g. value, alt, width)
+ *
+ * @param htmlElement
+ * a locator.
+ * @param attribut
+ * name of the attribut (e.g. value, alt, width)
* @return current value of a html element's attribut.
*/
- String getAttributeValue(HtmlElementLocator htmlElement, String attribut)
throws ElementNotFoundException;
+ String getAttributeValue(HtmlElementLocator htmlElement, String attribut)
+ throws ElementNotFoundException;
/**
- * Gets the text of an element. This works for any element that contains
text.
- * @param htmlElement a locator.
+ * Set the value of a html element's attribut.
+ *
+ * @param htmlElement
+ * a locator.
+ * @param attribut
+ * name of the attribut (e.g. value, alt, width)
+ * @param value
+ * value of the html element's attribut.
+ */
+ void setAttributeValue(HtmlElementLocator htmlElement, String attribut,
+ String value) throws ElementNotFoundException;
+
+ /**
+ * Get the text representation of element childs.
+ *
+ * @param htmlElement
+ * a locator.
* @return current text content of an element.
*/
- String getText(HtmlElementLocator htmlElement) throws
ElementNotFoundException;
+ String getText(HtmlElementLocator htmlElement)
+ throws ElementNotFoundException;
/**
- * Count how many elements match the given locator.
- * @param htmlElement a locator.
- * @return element count.
+ * Set the text content of a textarea.
+ *
+ * @param textArea
+ * a textarea locator.
+ * @param value
+ * the value to set
*/
- int getCount(HtmlElementLocator htmlElement) throws
ElementNotFoundException;
+ void setTextArea(HtmlTextAreaLocator textArea, String value)
+ throws ElementNotFoundException;
/**
- * Fill a text, password or textarea field with the provided text.
+ * Count how many elements match the given locator.
*
* @param htmlElement
- * locator of the text, password, file or textarea element
- * @param text
- * value to type in the field.
+ * a locator.
+ * @return element count.
*/
- void setTextField(HtmlElementLocator htmlElement, String text);
+ int getCount(HtmlElementLocator htmlElement);
/**
* Return a string array of select box option values.
@@ -182,18 +205,18 @@
* Exemple: <br/>
*
* <pre>
- * <FORM action="http://my_host/doit"
method="post">
- * <P>
- * <SELECT multiple size="4"
name="component-select">
- * <OPTION selected
value="Component_1_a">Component_1</OPTION>
- * <OPTION selected
value="Component_1_b">Component_2</OPTION>
- * <OPTION>Component_3</OPTION>
- * <OPTION>Component_4</OPTION>
- * <OPTION>Component_5</OPTION>
- * </SELECT>
- * <INPUT type="submit"
value="Send"><INPUT type="reset">
- * </P>
- * </FORM>
+ * <FORM action="http://my_host/doit"
method="post">
+ * <P>
+ * <SELECT multiple size="4"
name="component-select">
+ * <OPTION selected
value="Component_1_a">Component_1</OPTION>
+ * <OPTION selected
value="Component_1_b">Component_2</OPTION>
+ * <OPTION>Component_3</OPTION>
+ * <OPTION>Component_4</OPTION>
+ * <OPTION>Component_5</OPTION>
+ * </SELECT>
+ * <INPUT type="submit"
value="Send"><INPUT type="reset">
+ * </P>
+ * </FORM>
* </pre>
*
* Should return [Component_1_a, Component_1_b, Component_3, Component_4,
@@ -202,7 +225,8 @@
* @param selectName
* name of the select box.
*/
- SelectOption[] getSelectOptions(HtmlSelectLocator htmlSelect) throws
net.sourceforge.jwebunit.exception.ElementNotFoundException;
+ SelectOption[] getSelectOptions(HtmlSelectLocator htmlSelect)
+ throws ElementNotFoundException;
/**
* Return the values of the currently selected items in a select box.
@@ -210,54 +234,30 @@
* @param selectName
* name of the select box.
*/
- SelectOption[] getSelectedOptions(HtmlSelectLocator htmlSelect) throws
net.sourceforge.jwebunit.exception.ElementNotFoundException;
+ SelectOption[] getSelectedOptions(HtmlSelectLocator htmlSelect)
+ throws ElementNotFoundException;
/**
- * Select option(s) of a select box. If multi-select is enabled,
- * you can specify more than one option. Options are selected in the given
order.
+ * Select option(s) of a select box. If multi-select is enabled, you can
+ * specify more than one option. Options are selected in the given order.
*
- * @param selectName
- * name of the select box.
- * @param optionsValue
- * values of the options to select.
+ * @param options
+ * option(s) to select.
*/
- void selectOptions(HtmlSelectLocator htmlSelect, HtmlOptionLocator[]
options);
+ void selectOptions(List<HtmlOptionLocator> options)
+ throws ElementNotFoundException;
/**
- * Unselect option(s) of a select box by display label.
+ * Unselect option(s) of a select box. If multi-select is enabled, you can
+ * specify more than one option. Options are unselected in the given order.
*
- * @param selectName
- * name of the select box.
- * @param optionsValue
- * vaules of the options to unselect.
+ * @param options
+ * option(s) to unselect.
*/
- void unselectOptions(HtmlSelectLocator htmlSelect, HtmlOptionLocator[]
options);
+ void unselectOptions(List<HtmlOptionLocator> options)
+ throws ElementNotFoundException;
/**
- * Determines if the checkbox is selected.
- *
- * @param checkBoxName
- * name of the checkbox.
- * @return true if the checkbox is selected.
- *
- */
- boolean isCheckboxSelected(HtmlCheckboxLocator checkbox);
-
- /**
- * Submit the current form with the default submit button. See
- * [EMAIL PROTECTED] #getForm}for an explanation of how the current form is
- * established.
- */
- void submit();
-
- /**
- * Reset the current form with the default reset button. See
- * [EMAIL PROTECTED] #getForm}for an explanation of how the current form is
- * established.
- */
- void reset();
-
- /**
* Return the string representation of the current page, encoded as
* specified by the current [EMAIL PROTECTED]
net.sourceforge.jwebunit.TestContext}.
*/
@@ -287,45 +287,19 @@
* table locator.
* @return unified jWebUnit representation of a table.
*/
- Table getTable(HtmlTableLocator table) throws
net.sourceforge.jwebunit.exception.ElementNotFoundException;
+ Table getTable(HtmlTableLocator table)
+ throws net.sourceforge.jwebunit.exception.ElementNotFoundException;
/**
- * Test if Html element exists.
- *
- * @param htmlElement
- * a locator for the element.
- */
- boolean hasElement(HtmlElementLocator htmlElement);
-
- /**
* Click html element.
*
* @param htmlElement
* html element locator.
*/
- void clickElement(ClickableHtmlElementLocator htmlElement) throws
ElementNotFoundException;
+ void clickElement(ClickableHtmlElementLocator htmlElement)
+ throws ElementNotFoundException;
/**
- * Return true if a given string is contained within the specified element.
- *
- * @param htmlElement
- * a locator of html element to inspect.
- * @param text
- * text to check for.
- */
- boolean isTextInElement(HtmlElementLocator htmlElement, String text);
-
- /**
- * Return true if a given regexp is contained within the specified element.
- *
- * @param htmlElement
- * a locator of html element to inspect.
- * @param regexp
- * regexp to match.
- */
- boolean isMatchInElement(HtmlElementLocator htmlElement, String regexp);
-
- /**
* When you perform an action, the dialog keep an history of each
Javascript
* alert thrown. This method get the first Javascript alert in the list and
* remove it. With Selenium, you HAVE TO check presence of alert. If not,
an
Modified:
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/JWebUnitTester.java
===================================================================
---
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/JWebUnitTester.java
2006-10-17 12:46:18 UTC (rev 585)
+++
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/JWebUnitTester.java
2006-10-17 12:48:07 UTC (rev 586)
@@ -4,7 +4,6 @@
******************************************************************************/
package net.sourceforge.jwebunit;
-import java.io.PrintStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Locale;
@@ -15,17 +14,26 @@
import net.sourceforge.jwebunit.exception.AssertMatchException;
import net.sourceforge.jwebunit.exception.AssertNotContainsException;
import net.sourceforge.jwebunit.exception.AssertNotMatchException;
+import net.sourceforge.jwebunit.exception.AssertNotSelectedException;
+import net.sourceforge.jwebunit.exception.AssertSelectedException;
import net.sourceforge.jwebunit.exception.ElementFoundException;
import net.sourceforge.jwebunit.exception.ElementNotFoundException;
import net.sourceforge.jwebunit.exception.TestingEngineRegistryException;
import net.sourceforge.jwebunit.exception.TestingEngineResponseException;
-import net.sourceforge.jwebunit.exception.UnableToSetFormException;
import net.sourceforge.jwebunit.html.Table;
+import net.sourceforge.jwebunit.locator.ClickableHtmlElementLocator;
import net.sourceforge.jwebunit.locator.HtmlButtonLocator;
+import net.sourceforge.jwebunit.locator.HtmlCheckboxInputLocator;
+import net.sourceforge.jwebunit.locator.HtmlCheckboxInputLocatorByName;
import net.sourceforge.jwebunit.locator.HtmlElementLocator;
+import net.sourceforge.jwebunit.locator.HtmlFileInputLocatorByName;
import net.sourceforge.jwebunit.locator.HtmlFormLocator;
-import net.sourceforge.jwebunit.locator.HtmlFormLocatorByName;
+import net.sourceforge.jwebunit.locator.HtmlPasswordInputLocatorByName;
import net.sourceforge.jwebunit.locator.HtmlTableLocator;
+import net.sourceforge.jwebunit.locator.HtmlTextAreaLocator;
+import net.sourceforge.jwebunit.locator.HtmlTextAreaLocatorByName;
+import net.sourceforge.jwebunit.locator.HtmlTextInputLocatorByName;
+import net.sourceforge.jwebunit.locator.TextFieldHtmlElementLocator;
import net.sourceforge.jwebunit.util.ExceptionUtility;
import org.apache.regexp.RE;
@@ -321,7 +329,8 @@
* @return Object that represent a html table in a way independent from
* plugin.
*/
- public Table getTable(HtmlTableLocator tableLocator) throws
ElementNotFoundException {
+ public Table getTable(HtmlTableLocator tableLocator)
+ throws ElementNotFoundException {
return getDialog().getTable(tableLocator);
}
@@ -331,7 +340,7 @@
*/
public void assertElementPresent(HtmlElementLocator locator)
throws ElementNotFoundException {
- if (!getDialog().hasElement(locator))
+ if (getDialog().getCount(locator) == 0)
throw new ElementNotFoundException(locator);
}
@@ -341,7 +350,7 @@
*/
public void assertElementNotPresent(HtmlElementLocator locator)
throws ElementFoundException {
- if (getDialog().hasElement(locator))
+ if (getDialog().getCount(locator) != 0)
throw new ElementFoundException(locator);
}
@@ -509,7 +518,8 @@
* represents expected values (colspan supported).
*/
public void assertTableEquals(HtmlTableLocator tableLocator,
- Table expectedTable) throws ElementNotFoundException,
AssertEqualsException {
+ Table expectedTable) throws ElementNotFoundException,
+ AssertEqualsException {
getDialog().getTable(tableLocator).assertEquals(expectedTable);
}
@@ -520,7 +530,8 @@
* double dimensional array of expected values
*/
public void assertTableEquals(HtmlTableLocator tableLocator,
- String[][] expectedCellValues) throws ElementNotFoundException,
AssertEqualsException {
+ String[][] expectedCellValues) throws ElementNotFoundException,
+ AssertEqualsException {
getDialog().getTable(tableLocator).assertEquals(
new Table(expectedCellValues));
}
@@ -535,7 +546,8 @@
* represents expected values (colspan and rowspan supported).
*/
public void assertTableRowsEqual(HtmlTableLocator tableLocator,
- int startRow, Table expectedTable) throws
ElementNotFoundException, AssertEqualsException {
+ int startRow, Table expectedTable) throws ElementNotFoundException,
+ AssertEqualsException {
getDialog().getTable(tableLocator).assertSubTableEquals(startRow,
expectedTable);
}
@@ -582,7 +594,8 @@
* represents expected regexps (colspan/rowspan supported).
*/
public void assertTableMatch(HtmlTableLocator tableLocator,
- Table expectedTable) throws ElementNotFoundException,
AssertMatchException {
+ Table expectedTable) throws ElementNotFoundException,
+ AssertMatchException {
getDialog().getTable(tableLocator).assertMatch(expectedTable);
}
@@ -593,7 +606,8 @@
* double dimensional array of expected regexps
*/
public void assertTableMatch(HtmlTableLocator tableLocator,
- String[][] expectedCellValues) throws ElementNotFoundException,
AssertMatchException {
+ String[][] expectedCellValues) throws ElementNotFoundException,
+ AssertMatchException {
getDialog().getTable(tableLocator).assertMatch(
new Table(expectedCellValues));
}
@@ -608,7 +622,8 @@
* represents expected regexps (colspan and rowspan supported).
*/
public void assertTableRowsMatch(HtmlTableLocator tableLocator,
- int startRow, Table expectedTable) throws
ElementNotFoundException, AssertMatchException {
+ int startRow, Table expectedTable) throws ElementNotFoundException,
+ AssertMatchException {
getDialog().getTable(tableLocator).assertSubTableMatch(startRow,
expectedTable);
}
@@ -626,7 +641,8 @@
* supported).
*/
public void assertTableRowsMatch(HtmlTableLocator tableLocator,
- int startRow, String[][] expectedTable) throws
ElementNotFoundException, AssertMatchException {
+ int startRow, String[][] expectedTable)
+ throws ElementNotFoundException, AssertMatchException {
getDialog().getTable(tableLocator).assertSubTableMatch(startRow,
new Table(expectedTable));
}
@@ -699,33 +715,53 @@
// formElementName));
// }
//
- // /**
- // * Assert that a specific checkbox is selected.
- // *
- // * @param checkBoxName
- // */
- // public void assertCheckboxSelected(String checkBoxName) {
- // assertCheckboxPresent(checkBoxName);
- // if (!getDialog().isCheckboxSelected(checkBoxName)) {
- // Assert.fail("Checkbox with name [" + checkBoxName
- // + "] was not found selected.");
- // }
- // }
+ /**
+ * Assert that a specific checkbox is selected.
+ *
+ * @param checkBoxName
+ */
+ public void assertCheckboxSelected(String checkBoxName)
+ throws ElementNotFoundException, AssertSelectedException {
+ assertCheckboxSelected(new
HtmlCheckboxInputLocatorByName(checkBoxName));
+ }
+
+ /**
+ * Assert that a specific checkbox is selected.
+ *
+ * @param checkBoxName
+ */
+ public void assertCheckboxSelected(HtmlCheckboxInputLocator checkBox)
+ throws ElementNotFoundException, AssertSelectedException {
+ if (!getDialog().getAttributeValue(checkBox,
"checked").equals("true")) {
+ throw new AssertSelectedException(checkBox);
+ }
+ }
+
+ /**
+ * Assert that a specific checkbox is not selected.
+ *
+ * @param checkBoxName
+ */
+ public void assertCheckboxNotSelected(String checkBoxName)
+ throws ElementNotFoundException, AssertNotSelectedException {
+ assertCheckboxNotSelected(new HtmlCheckboxInputLocatorByName(
+ checkBoxName));
+ }
+
+ /**
+ * Assert that a specific checkbox is not selected.
+ *
+ * @param checkBox
+ */
+ public void assertCheckboxNotSelected(HtmlCheckboxInputLocator checkBox)
+ throws ElementNotFoundException, AssertNotSelectedException {
+ if (!getDialog().getAttributeValue(checkBox,
"checked").equals("true")) {
+ throw new AssertNotSelectedException(checkBox);
+ }
+ }
+
//
// /**
- // * Assert that a specific checkbox is not selected.
- // *
- // * @param checkBoxName
- // */
- // public void assertCheckboxNotSelected(String checkBoxName) {
- // assertCheckboxPresent(checkBoxName);
- // if (getDialog().isCheckboxSelected(checkBoxName)) {
- // Assert.fail("Checkbox with name [" + checkBoxName
- // + "] was found selected.");
- // }
- // }
- //
- // /**
// * Assert that a specific option is present in a radio group.
// *
// * @param name
@@ -1179,12 +1215,7 @@
public void assertButtonNotPresentWithText(String text)
throws ElementFoundException {
HtmlElementLocator l = new HtmlButtonLocator();
- int count;
- try {
- count = getDialog().getCount(l);
- } catch (ElementNotFoundException e1) {
- return;
- }
+ int count = getDialog().getCount(l);
for (int i = 0; i < count; i++) {
HtmlElementLocator li = new HtmlButtonLocator(count);
try {
@@ -1602,81 +1633,68 @@
*/
public void setWorkingForm(HtmlFormLocator formLocator)
throws ElementNotFoundException {
- getDialog().setWorkingForm(formLocator);
+ // getDialog().setWorkingForm(formLocator);
}
- //
+ /**
+ * Set the value of a text or password input field.
+ *
+ * @param inputName
+ * name of form element.
+ * @param value
+ * value to set.
+ * @deprecated
+ */
+ public void setTextField(String inputName, String value)
+ throws ElementNotFoundException {
+ try {
+ setTextField(new HtmlTextAreaLocatorByName(inputName), value);
+ } catch (ElementNotFoundException ex) {
+ try {
+ setTextField(new HtmlTextInputLocatorByName(inputName), value);
+ } catch (ElementNotFoundException ex2) {
+ try {
+ setTextField(new HtmlPasswordInputLocatorByName(inputName),
+ value);
+ } catch (ElementNotFoundException ex3) {
+ try {
+ setTextField(new HtmlFileInputLocatorByName(inputName),
+ value);
+ } catch (ElementNotFoundException ex4) {
+ throw new ElementNotFoundException(
+ "Could not find a text field with name ["
+ + inputName + "]");
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Type text in a text field. Text fields are
+ * <ul>
+ * <li><input type="text" ...></li>
+ * <li><input type="password" ...></li>
+ * <li><input type="file" ...></li>
+ * <li><textarea ...></li>
+ * </ul>
+ *
+ * @param textField
+ * text filed locator.
+ * @param value
+ * value to set.
+ */
+ public void setTextField(TextFieldHtmlElementLocator textField, String
value)
+ throws ElementNotFoundException {
+ textField.setTextField(getDialog(), value);
+ }
+
+ public void click(ClickableHtmlElementLocator clickableElement)
+ throws ElementNotFoundException {
+ getDialog().clickElement(clickableElement);
+ }
+
// /**
- // * Set the value of a text or password input field.
- // *
- // * @param inputName
- // * name of form element.
- // * @param value
- // * value to set.
- // */
- // public void setTextField(String inputName, String value) {
- // assertFormPresent();
- // assertFormElementPresent(inputName);
- // getDialog().setTextField(inputName, value);
- // }
- //
- // /**
- // * Select a specified checkbox. If the checkbox is already checked then
- // the
- // * checkbox will stay checked.
- // *
- // * @param checkBoxName
- // * name of checkbox to be selected.
- // */
- // public void checkCheckbox(String checkBoxName) {
- // assertCheckboxPresent(checkBoxName);
- // getDialog().checkCheckbox(checkBoxName);
- // }
- //
- // /**
- // * Select a specified checkbox. If the checkbox is already checked then
- // the
- // * checkbox will stay checked.
- // *
- // * @param checkBoxName
- // * name of checkbox to be selected.
- // * @param value
- // * value of checkbox to be selected.
- // */
- // public void checkCheckbox(String checkBoxName, String value) {
- // assertCheckboxPresent(checkBoxName);
- // getDialog().checkCheckbox(checkBoxName, value);
- // }
- //
- // /**
- // * Deselect a specified checkbox. If the checkbox is already unchecked
- // then
- // * the checkbox will stay unchecked.
- // *
- // * @param checkBoxName
- // * name of checkbox to be deselected.
- // */
- // public void uncheckCheckbox(String checkBoxName) {
- // assertFormElementPresent(checkBoxName);
- // getDialog().uncheckCheckbox(checkBoxName);
- // }
- //
- // /**
- // * Deselect a specified checkbox. If the checkbox is already unchecked
- // then
- // * the checkbox will stay unchecked.
- // *
- // * @param checkBoxName
- // * name of checkbox to be deselected.
- // * @param value
- // * value of checkbox to be deselected.
- // */
- // public void uncheckCheckbox(String checkBoxName, String value) {
- // assertFormElementPresent(checkBoxName);
- // getDialog().uncheckCheckbox(checkBoxName, value);
- // }
- //
- // /**
// * Select options with given display labels in a select element.
// *
// * @param selectName
Modified:
trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/TableTest.java
===================================================================
--- trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/TableTest.java
2006-10-17 12:46:18 UTC (rev 585)
+++ trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/TableTest.java
2006-10-17 12:48:07 UTC (rev 586)
@@ -53,7 +53,7 @@
* Test method assertSubTableEquals.
*
*/
- public final void testAssertSubTableEquals() {
+ public final void testAssertSubTableEquals() throws Exception {
String[] r1 = {"Males", "1.9", "0.003", "40%"};
String[] r2 = {"Females", "1.7", "0.002", "43%"};
Table sub = new Table();
@@ -66,7 +66,7 @@
* Test method assertSubTableMatch.
*
*/
- public final void testAssertSubTableMatch() {
+ public final void testAssertSubTableMatch() throws Exception {
String[] r1 = {"Mal(e|r)s", "1\\.?", "0\\.003", "40\\%"};
String[] r2 = {"Fem(.)les", "1\\.?", "0[:punct:]002", "43\\%"};
Table sub = new Table();
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