Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 3783458

Browse files
committed
Remove HttpUnit dialog.
Clean everything before releasing.
1 parent 79cd42c commit 3783458

23 files changed

Lines changed: 90 additions & 2766 deletions

File tree

jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void testAssertTableEquals() throws Throwable {
2626
cells[0] = new Cell[3];
2727
cells[0][0]=new Cell("",1,2);
2828
cells[0][1]=new Cell("Average",2,1);
29-
cells[0][2]=new Cell("Red\neyes",1,2);
29+
cells[0][2]=new Cell("Red eyes",1,2);
3030
cells[1] = new Cell[2];
3131
cells[1][0]=new Cell("height",1,1);
3232
cells[1][1]=new Cell("weight",1,1);
@@ -49,7 +49,7 @@ public void testAssertTableEqualsMissingRows() throws Throwable {
4949
cells[0] = new Cell[3];
5050
cells[0][0]=new Cell("",1,2);
5151
cells[0][1]=new Cell("Average",2,1);
52-
cells[0][2]=new Cell("Red\neyes",1,2);
52+
cells[0][2]=new Cell("Red eyes",1,2);
5353
cells[1] = new Cell[2];
5454
cells[1][0]=new Cell("height",1,1);
5555
cells[1][1]=new Cell("weight",1,1);

jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void testAssertTableEquals() throws Throwable {
2626
cells[0] = new Cell[3];
2727
cells[0][0]=new Cell("",1,2);
2828
cells[0][1]=new Cell("Average",2,1);
29-
cells[0][2]=new Cell("Red\neyes",1,2);
29+
cells[0][2]=new Cell("Red eyes",1,2);
3030
cells[1] = new Cell[2];
3131
cells[1][0]=new Cell("height",1,1);
3232
cells[1][1]=new Cell("weight",1,1);
@@ -49,7 +49,7 @@ public void testAssertTableEqualsMissingRows() throws Throwable {
4949
cells[0] = new Cell[3];
5050
cells[0][0]=new Cell("",1,2);
5151
cells[0][1]=new Cell("Average",2,1);
52-
cells[0][2]=new Cell("Red\neyes",1,2);
52+
cells[0][2]=new Cell("Red eyes",1,2);
5353
cells[1] = new Cell[2];
5454
cells[1][0]=new Cell("height",1,1);
5555
cells[1][1]=new Cell("weight",1,1);

jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionCheckboxesTest.java

Lines changed: 0 additions & 71 deletions
This file was deleted.

jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionWithLabelTest.java

Lines changed: 0 additions & 46 deletions
This file was deleted.

jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageHtml.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
<tr>
1313
<th rowspan="2">
1414
<th colspan="2">Average
15-
<th rowspan="2">Red<br>
16-
eyes
15+
<th rowspan="2">Red eyes
1716
<tr>
1817
<th>height
1918
<th>weight

jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageXHtml.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<tr>
1616
<th rowspan="2" />
1717
<th colspan="2">Average</th>
18-
<th rowspan="2">Red<br/>eyes</th>
18+
<th rowspan="2">Red eyes</th>
1919
</tr>
2020
<tr>
2121
<th>height</th>

jwebunit-core/src/main/java/net/sourceforge/jwebunit/IJWebUnitDialog.java

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -650,81 +650,4 @@ void beginAt(String aInitialURL, TestContext aTestContext)
650650
* regexp to match.
651651
*/
652652
boolean isMatchInElement(String elementID, String regexp);
653-
654-
// *****************************************************************
655-
// DEPRECATED OR NOT EASY TO IMPLEMENT (TO REMOVE)
656-
// *****************************************************************
657-
/**
658-
* Get the name of the first input element appearing before a text label.
659-
*
660-
* @param formElementLabel
661-
* the input element label
662-
* @return the 'name' attribute of the first input element preceding the
663-
* text
664-
* @deprecated label is not a good way to locate elements
665-
*/
666-
String getFormElementNameBeforeLabel(String formElementLabel);
667-
668-
/**
669-
* Get the vale of the first input element appearing before a text label.
670-
*
671-
* @param formElementLabel
672-
* the input element label
673-
* @return the 'value' attribute of the first input element preceding the
674-
* text
675-
* @deprecated label is not a good way to locate elements
676-
*/
677-
String getFormElementValueBeforeLabel(String formElementLabel);
678-
679-
/**
680-
* Get the value of the first input element appearing after a text label.
681-
*
682-
* @param formElementLabel
683-
* the input element label
684-
* @return the 'name' attribute of the first input element preceding the
685-
* text
686-
* @deprecated label is not a good way to locate elements
687-
*/
688-
String getFormElementValueForLabel(String formElementLabel);
689-
690-
691-
/**
692-
* Set a form parameter / input element to the provided value.
693-
*
694-
* @param paramName
695-
* name of the input element
696-
* @param paramValue
697-
* parameter value to submit for the element.
698-
* @deprecated use setTextField, checkCheckBox, ...
699-
*/
700-
void setFormParameter(String paramName, String paramValue);
701-
702-
/**
703-
* Return true if a form parameter (input element) is present on the current
704-
* response preceded by a given label.
705-
*
706-
* @param paramLabel
707-
* label of the input element to check for
708-
* @deprecated label is not a good way to locate elements
709-
*/
710-
boolean hasFormParameterLabeled(String paramLabel);
711-
712-
/**
713-
* Return the name of a form parameter (input element) on the current
714-
* response preceded by a givel label.
715-
*
716-
* @param formElementLabel
717-
* label of the input element to fetch name.
718-
* @deprecated label is not a good way to locate elements
719-
*/
720-
String getFormElementNameForLabel(String formElementLabel);
721-
722-
/**
723-
*
724-
* @param linkText
725-
* @param labelText
726-
* @deprecated this is not a good way to locate elements
727-
*/
728-
void clickLinkWithTextAfterText(String linkText, String labelText);
729-
730653
}

jwebunit-core/src/main/java/net/sourceforge/jwebunit/TestingEngineRegistry.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@
1818
public class TestingEngineRegistry {
1919

2020
// TODO Move this to a JDK1.5 typesafe enum
21-
public final static String TESTING_ENGINE_HTTPUNIT = "TestingEngineHttpUnit";
22-
2321
public final static String TESTING_ENGINE_HTMLUNIT = "TestingEngineHtmlUnit";
2422

25-
public final static String TESTING_ENGINE_JACOBIE = "TestingEngineJacobie";
26-
27-
public final static String TESTING_ENGINE_SELENIUM = "TestingEngineSelenium";
28-
2923
private static Hashtable testingEngineMap = null;
3024

3125
public TestingEngineRegistry() {
@@ -39,34 +33,13 @@ public TestingEngineRegistry() {
3933
public static Hashtable getTestingEngineMap() {
4034
if (testingEngineMap == null) {
4135
testingEngineMap = new Hashtable();
42-
try {
43-
String cp = "net.sourceforge.jwebunit.httpunit.HttpUnitDialog";
44-
Class.forName(cp);
45-
testingEngineMap.put(TESTING_ENGINE_HTTPUNIT, cp);
46-
} catch (ClassNotFoundException e) {
47-
//Nothing to do
48-
}
4936
try {
5037
String cp = "net.sourceforge.jwebunit.htmlunit.HtmlUnitDialog";
5138
Class.forName(cp);
5239
testingEngineMap.put(TESTING_ENGINE_HTMLUNIT, cp);
5340
} catch (ClassNotFoundException e) {
5441
//Nothing to do
5542
}
56-
try {
57-
String cp = "net.sourceforge.jwebunit.jacobie.JacobieDialog";
58-
Class.forName(cp);
59-
testingEngineMap.put(TESTING_ENGINE_JACOBIE, cp);
60-
} catch (ClassNotFoundException e) {
61-
//Nothing to do
62-
}
63-
try {
64-
String cp = "net.sourceforge.jwebunit.selenium.SeleniumDialog";
65-
Class.forName(cp);
66-
testingEngineMap.put(TESTING_ENGINE_SELENIUM, cp);
67-
} catch (ClassNotFoundException e) {
68-
//Nothing to do
69-
}
7043
}
7144
return testingEngineMap;
7245
}

0 commit comments

Comments
 (0)