jwebunit-development Mailing List for JWebUnit (Page 3)
Brought to you by:
henryju
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(98) |
Jul
(45) |
Aug
(49) |
Sep
(90) |
Oct
(28) |
Nov
(18) |
Dec
(17) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(14) |
Feb
(21) |
Mar
(52) |
Apr
(39) |
May
(61) |
Jun
(35) |
Jul
(42) |
Aug
(31) |
Sep
(34) |
Oct
(16) |
Nov
(14) |
Dec
(61) |
| 2006 |
Jan
(39) |
Feb
(11) |
Mar
(29) |
Apr
(29) |
May
(30) |
Jun
(145) |
Jul
(61) |
Aug
(40) |
Sep
(36) |
Oct
(66) |
Nov
(50) |
Dec
(11) |
| 2007 |
Jan
(30) |
Feb
(1) |
Mar
(47) |
Apr
(9) |
May
(36) |
Jun
(13) |
Jul
(7) |
Aug
(5) |
Sep
(6) |
Oct
(3) |
Nov
(11) |
Dec
(36) |
| 2008 |
Jan
(12) |
Feb
|
Mar
(4) |
Apr
(29) |
May
(1) |
Jun
(8) |
Jul
(10) |
Aug
|
Sep
(2) |
Oct
(77) |
Nov
(107) |
Dec
(46) |
| 2009 |
Jan
(17) |
Feb
(13) |
Mar
(27) |
Apr
(5) |
May
(8) |
Jun
(17) |
Jul
(10) |
Aug
(25) |
Sep
(15) |
Oct
(4) |
Nov
(4) |
Dec
(10) |
| 2010 |
Jan
|
Feb
(6) |
Mar
(12) |
Apr
(15) |
May
(4) |
Jun
(5) |
Jul
(9) |
Aug
(5) |
Sep
(5) |
Oct
(63) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(9) |
Feb
(3) |
Mar
(15) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
(14) |
Sep
(15) |
Oct
(11) |
Nov
(1) |
Dec
(2) |
| 2012 |
Jan
(6) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(14) |
Aug
(17) |
Sep
(8) |
Oct
(1) |
Nov
(17) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(13) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(13) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
|
From: <he...@us...> - 2012-11-22 09:49:02
|
Revision: 959
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=959&view=rev
Author: henryju
Date: 2012-11-22 09:48:51 +0000 (Thu, 22 Nov 2012)
Log Message:
-----------
[maven-release-plugin] prepare release jwebunit-3.1
Modified Paths:
--------------
trunk/jwebunit-code-generator/pom.xml
trunk/jwebunit-commons-tests/pom.xml
trunk/jwebunit-core/pom.xml
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-webdriver-plugin/pom.xml
trunk/pom.xml
Modified: trunk/jwebunit-code-generator/pom.xml
===================================================================
--- trunk/jwebunit-code-generator/pom.xml 2012-11-22 09:37:57 UTC (rev 958)
+++ trunk/jwebunit-code-generator/pom.xml 2012-11-22 09:48:51 UTC (rev 959)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>3.1-SNAPSHOT</version>
+ <version>3.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-commons-tests/pom.xml
===================================================================
--- trunk/jwebunit-commons-tests/pom.xml 2012-11-22 09:37:57 UTC (rev 958)
+++ trunk/jwebunit-commons-tests/pom.xml 2012-11-22 09:48:51 UTC (rev 959)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>3.1-SNAPSHOT</version>
+ <version>3.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-core/pom.xml
===================================================================
--- trunk/jwebunit-core/pom.xml 2012-11-22 09:37:57 UTC (rev 958)
+++ trunk/jwebunit-core/pom.xml 2012-11-22 09:48:51 UTC (rev 959)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>3.1-SNAPSHOT</version>
+ <version>3.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2012-11-22 09:37:57 UTC (rev 958)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2012-11-22 09:48:51 UTC (rev 959)
@@ -2,7 +2,7 @@
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>3.1-SNAPSHOT</version>
+ <version>3.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/jwebunit-webdriver-plugin/pom.xml
===================================================================
--- trunk/jwebunit-webdriver-plugin/pom.xml 2012-11-22 09:37:57 UTC (rev 958)
+++ trunk/jwebunit-webdriver-plugin/pom.xml 2012-11-22 09:48:51 UTC (rev 959)
@@ -1,9 +1,8 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>jwebunit</artifactId>
<groupId>net.sourceforge.jwebunit</groupId>
- <version>3.1-SNAPSHOT</version>
+ <version>3.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2012-11-22 09:37:57 UTC (rev 958)
+++ trunk/pom.xml 2012-11-22 09:48:51 UTC (rev 959)
@@ -3,7 +3,7 @@
<groupId>net.sourceforge.jwebunit</groupId>
<artifactId>jwebunit</artifactId>
<name>JWebUnit</name>
- <version>3.1-SNAPSHOT</version>
+ <version>3.1</version>
<packaging>pom</packaging>
<description>
JWebUnit is a Java framework that facilitates creation of
@@ -183,9 +183,9 @@
</license>
</licenses>
<scm>
- <connection>scm:svn:http://jwebunit.svn.sourceforge.net/svnroot/jwebunit/trunk</connection>
- <developerConnection>scm:svn:https://jwebunit.svn.sourceforge.net/svnroot/jwebunit/trunk</developerConnection>
- <url>http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/trunk</url>
+ <connection>scm:svn:http://jwebunit.svn.sourceforge.net/svnroot/jwebunit/tags/jwebunit-3.1</connection>
+ <developerConnection>scm:svn:https://jwebunit.svn.sourceforge.net/svnroot/jwebunit/tags/jwebunit-3.1</developerConnection>
+ <url>http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/tags/jwebunit-3.1</url>
</scm>
<organization>
<name>SourceForge</name>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2012-11-22 09:38:15
|
Revision: 958
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=958&view=rev
Author: henryju
Date: 2012-11-22 09:37:57 +0000 (Thu, 22 Nov 2012)
Log Message:
-----------
Prepare release 3.1
Modified Paths:
--------------
trunk/LICENSE.txt
trunk/README.txt
trunk/jwebunit-code-generator/src/site/site.xml
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ButtonAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CharsetTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ConcurrentJWebUnitTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CustomTesterTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsWithLabelTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HelloWorldTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HtmlParsingTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/IElementTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ImageTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JWebUnitAPITestCase.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NavigationTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NonHtmlContentTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/RedirectionTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResourceBundleAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/SelectOptionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TestContextTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/XPathTest.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/CookiesServlet.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/HeadersServlet.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/HtmlHelper.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/JettySetup.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ParamsServlet.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/RedirectServlet.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ResponseServlet.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/MethodInvoker.java
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/StaticMethodInvoker.java
trunk/jwebunit-commons-tests/src/main/resources/MessageBundle.properties
trunk/jwebunit-commons-tests/src/main/resources/TestContextBundle.properties
trunk/jwebunit-commons-tests/src/main/resources/jetty-users.properties
trunk/jwebunit-commons-tests/src/main/resources/logback-test.xml
trunk/jwebunit-commons-tests/src/main/resources/testcases/ButtonAssertionsTest/pageWithOneForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/ButtonAssertionsTest/pageWithTwoForms.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/CustomTesterTest/test.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageHtml.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageXHtml.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/assertButtonWithText.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/noFormPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/testPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/CheckboxForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/CheckboxFormWithLabels.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InputFileForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InputImageForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InvalidActionForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiFormPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiNamedButtonForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/QueryFormSimple.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/QueryFormTricky.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/RadioForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/SingleNamedButtonForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/SingleUnnamedButtonForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit1.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit2.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit3.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/TextAreaForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/BottomFrame.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/ChildPage1.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/ChildPage2.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/ChildPage3.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/ContentFrame.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/Frames.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/InlineFrame.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/RootPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/FramesAndWindowsTest/temp.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/HtmlTest/InvalidForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/HtmlTest/InvalidFormNoDoctype.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/HtmlTest/NoDoctype.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/HtmlTest/SimpleForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/HtmlTest/ValidComplexForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/HtmlTest/ValidFormNoDoctype.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/HtmlTest/XhtmlStrict.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/IElementTest/template.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/ImageTest/PageWithImages.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/ImageTest/somedir/AnotherPageWithImages.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptEventsTest/FormOnSubmit.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptEventsTest/FormOnSubmitSetTarget.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptEventsTest/index.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptEventsTest/nav.js
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptEventsTest/next.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptEventsTest/onchange.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/Alert.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/Confirm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/DocumentWrite.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/MultipleAlerts.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/Prompt.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/prototype-1.6.0.3.js
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/prototype.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/userAgent.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/blah.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/pageWithAmpersandInLink.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/pageWithLink.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/pageWithLinkWithTextAfterText.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/targetPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/targetPage2.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/test1.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/test2.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NavigationTest/test3.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/NonHtmlContentTest/text.txt
trunk/jwebunit-commons-tests/src/main/resources/testcases/RedirectionTest/redirect.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/RedirectionTest/redirected.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/RefreshHandlerTest/testPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/ResourceBundleAssertionsTest/testPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/ResponseServletTest/SimpleForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/SelectOptionsTest/pageWithOneForm.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/SelectOptionsTest/pageWithOneFormMulti.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/SelectOptionsTest/pageWithTwoForms.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/SelectOptionsTest/pageWithTwoFormsMulti.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/TableAssertionsTest/TableAssertionsTestPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/TestContextTest/testPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/WEB-INF/web.xml
trunk/jwebunit-commons-tests/src/main/resources/testcases/WebAssertionsTest/testPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/XPathTest/next.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/XPathTest/testPage.html
trunk/jwebunit-commons-tests/src/main/resources/testcases/helloworld.html
trunk/jwebunit-commons-tests/src/site/site.xml
trunk/jwebunit-commons-tests/src/test/java/net/sourceforge/jwebunit/tests/util/reflect/MethodInvokerTest.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/HttpHeader.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/IElement.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/ITestingEngine.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/ElementNotFoundException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/ExpectedJavascriptAlertException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/ExpectedJavascriptConfirmException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/ExpectedJavascriptPromptException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/TestingEngineRegistryException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/TestingEngineResponseException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/UnableToSetFormException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/UnexpectedJavascriptAlertException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/UnexpectedJavascriptConfirmException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/exception/UnexpectedJavascriptPromptException.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/html/Cell.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/html/Row.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/html/Table.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/javascript/JavascriptAlert.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/javascript/JavascriptConfirm.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/javascript/JavascriptPrompt.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/util/TestContext.java
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/util/TestingEngineRegistry.java
trunk/jwebunit-core/src/site/site.xml
trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/TableTest.java
trunk/jwebunit-core/src/test/java/net/sourceforge/jwebunit/junit/WebTesterTest.java
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
trunk/jwebunit-htmlunit-plugin/src/site/site.xml
trunk/jwebunit-htmlunit-plugin/src/site/xdoc/index.xml
trunk/jwebunit-htmlunit-plugin/src/test/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImplTest.java
trunk/jwebunit-htmlunit-plugin/src/test/java/net/sourceforge/jwebunit/htmlunit/JWebUnitTest.java
trunk/jwebunit-htmlunit-plugin/src/test/java/net/sourceforge/jwebunit/htmlunit/RefreshHandlerTest.java
trunk/jwebunit-webdriver-plugin/pom.xml
trunk/jwebunit-webdriver-plugin/src/main/java/net/sourceforge/jwebunit/webdriver/FixedHtmlUnitDriver.java
trunk/jwebunit-webdriver-plugin/src/main/java/net/sourceforge/jwebunit/webdriver/WebDriverElementImpl.java
trunk/jwebunit-webdriver-plugin/src/main/java/net/sourceforge/jwebunit/webdriver/WebDriverTestingEngineImpl.java
trunk/jwebunit-webdriver-plugin/src/site/site.xml
trunk/jwebunit-webdriver-plugin/src/site/xdoc/index.xml
trunk/jwebunit-webdriver-plugin/src/test/java/net/sourceforge/jwebunit/webdriver/JWebUnitTest.java
trunk/pom.xml
trunk/src/assemble/release.xml
trunk/src/changes/changes.xml
trunk/src/checkstyle/header-checkstyle.txt
trunk/src/checkstyle/jwebunit-checkstyle.xml
trunk/src/license/header.txt
trunk/src/site/fml/faq.fml
trunk/src/site/resources/style/project.css
trunk/src/site/site.xml
trunk/src/site/xdoc/articles.xml
trunk/src/site/xdoc/building-maven.xml
trunk/src/site/xdoc/how-to-contribute.xml
trunk/src/site/xdoc/how-to-release.xml
trunk/src/site/xdoc/index.xml
trunk/src/site/xdoc/installation.xml
trunk/src/site/xdoc/migration.xml
trunk/src/site/xdoc/quickstart.xml
Modified: trunk/LICENSE.txt
===================================================================
--- trunk/LICENSE.txt 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/LICENSE.txt 2012-11-22 09:37:57 UTC (rev 958)
@@ -2,7 +2,7 @@
/********************************************************************************
* JWebUnit, simplified web testing API
- * Copyright (c) 2010, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
* http://jwebunit.sourceforge.net
*
* JWebUnit is free software: you can redistribute it and/or modify
Modified: trunk/README.txt
===================================================================
--- trunk/README.txt 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/README.txt 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,4 +1,4 @@
-The JWebUnit team is pleased to announce the JWebUnit 3.0 release!
+The JWebUnit team is pleased to announce the JWebUnit 3.1 release!
http://jwebunit.sourceforge.net
Modified: trunk/jwebunit-code-generator/src/site/site.xml
===================================================================
--- trunk/jwebunit-code-generator/src/site/site.xml 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-code-generator/src/site/site.xml 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ButtonAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ButtonAssertionsTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ButtonAssertionsTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CharsetTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CharsetTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CharsetTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ConcurrentJWebUnitTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ConcurrentJWebUnitTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ConcurrentJWebUnitTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertTitleEquals;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CustomTesterTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CustomTesterTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/CustomTesterTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertTitleEquals;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsHtmlTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ExpectedTableAssertionsXHtmlTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import org.junit.Test;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsWithLabelTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsWithLabelTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsWithLabelTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import java.io.BufferedWriter;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FramesAndWindowsTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HelloWorldTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HelloWorldTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HelloWorldTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HtmlParsingTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HtmlParsingTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/HtmlParsingTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertElementPresent;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/IElementTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/IElementTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/IElementTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ImageTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ImageTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ImageTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JWebUnitAPITestCase.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JWebUnitAPITestCase.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JWebUnitAPITestCase.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -34,7 +34,7 @@
/**
* This class is intended be used by all "testcase" classes that are used to test the functionality of the jwebunit core
* api. This isn't to be extended by end users of the jwebunit api.
- *
+ *
* @author Nicholas Neuberger
*/
public abstract class JWebUnitAPITestCase extends JettySetup {
@@ -53,7 +53,7 @@
getTestContext().setBaseUrl(HOST_PATH);
getTestContext().setAuthorization("admin", "admin");
}
-
+
@After
public void closeBrowser() {
JWebUnit.closeBrowser();
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertButtonPresent;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NavigationTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NavigationTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NavigationTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertLinkPresentWithExactText;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NonHtmlContentTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NonHtmlContentTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/NonHtmlContentTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertDownloadedFileEquals;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/RedirectionTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/RedirectionTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/RedirectionTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertTitleEquals;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResourceBundleAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResourceBundleAssertionsTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResourceBundleAssertionsTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.beginAt;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import org.junit.Test;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/SelectOptionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/SelectOptionsTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/SelectOptionsTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertSelectOptionNotPresent;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TestContextTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TestContextTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TestContextTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebAssertionsTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebAssertionsTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebAssertionsTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/WebCookieTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/XPathTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/XPathTest.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/XPathTest.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/CookiesServlet.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/CookiesServlet.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/CookiesServlet.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/HeadersServlet.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/HeadersServlet.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/HeadersServlet.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/HtmlHelper.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/HtmlHelper.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/HtmlHelper.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests.util;
public abstract class HtmlHelper {
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/JettySetup.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/JettySetup.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/JettySetup.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ParamsServlet.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ParamsServlet.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ParamsServlet.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/RedirectServlet.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/RedirectServlet.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/RedirectServlet.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ResponseServlet.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ResponseServlet.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/ResponseServlet.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests.util;
import java.io.IOException;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/MethodInvoker.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/MethodInvoker.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/MethodInvoker.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests.util.reflect;
import java.lang.reflect.InvocationTargetException;
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/StaticMethodInvoker.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/StaticMethodInvoker.java 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/StaticMethodInvoker.java 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, JWebUnit team.
+ * Copyright (c) 2002-2012, JWebUnit team.
*
* This file is part of JWebUnit.
*
@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
-
package net.sourceforge.jwebunit.tests.util.reflect;
import java.lang.reflect.InvocationTargetException;
Modified: trunk/jwebunit-commons-tests/src/main/resources/MessageBundle.properties
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/MessageBundle.properties 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/MessageBundle.properties 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2011, JWebUnit team.
+# Copyright (c) 2002-2012, JWebUnit team.
#
# This file is part of JWebUnit.
#
Modified: trunk/jwebunit-commons-tests/src/main/resources/TestContextBundle.properties
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/TestContextBundle.properties 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/TestContextBundle.properties 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2011, JWebUnit team.
+# Copyright (c) 2002-2012, JWebUnit team.
#
# This file is part of JWebUnit.
#
Modified: trunk/jwebunit-commons-tests/src/main/resources/jetty-users.properties
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/jetty-users.properties 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/jetty-users.properties 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2011, JWebUnit team.
+# Copyright (c) 2002-2012, JWebUnit team.
#
# This file is part of JWebUnit.
#
Modified: trunk/jwebunit-commons-tests/src/main/resources/logback-test.xml
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/logback-test.xml 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/logback-test.xml 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/ButtonAssertionsTest/pageWithOneForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/ButtonAssertionsTest/pageWithOneForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/ButtonAssertionsTest/pageWithOneForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/ButtonAssertionsTest/pageWithTwoForms.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/ButtonAssertionsTest/pageWithTwoForms.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/ButtonAssertionsTest/pageWithTwoForms.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/CustomTesterTest/test.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/CustomTesterTest/test.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/CustomTesterTest/test.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageHtml.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageHtml.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageHtml.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageXHtml.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageXHtml.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/ExpectedTableAssertionsTest/TableAssertionsTestPageXHtml.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/assertButtonWithText.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/assertButtonWithText.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/assertButtonWithText.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/noFormPage.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/noFormPage.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/noFormPage.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/testPage.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/testPage.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/testPage.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/CheckboxForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/CheckboxForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/CheckboxForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/CheckboxFormWithLabels.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/CheckboxFormWithLabels.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/CheckboxFormWithLabels.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InputFileForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InputFileForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InputFileForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InputImageForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InputImageForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InputImageForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InvalidActionForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InvalidActionForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/InvalidActionForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiFormPage.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiFormPage.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiFormPage.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiNamedButtonForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiNamedButtonForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiNamedButtonForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/QueryFormSimple.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/QueryFormSimple.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/QueryFormSimple.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/QueryFormTricky.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/QueryFormTricky.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/QueryFormTricky.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/RadioForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/RadioForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/RadioForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/SingleNamedButtonForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/SingleNamedButtonForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/SingleNamedButtonForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/SingleUnnamedButtonForm.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/SingleUnnamedButtonForm.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/SingleUnnamedButtonForm.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit1.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit1.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit1.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (c) 2011, JWebUnit team.
+ Copyright (c) 2002-2012, JWebUnit team.
This file is part of JWebUnit.
Modified: trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit2.html
===================================================================
--- trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit2.html 2012-11-12 17:37:41 UTC (rev 957)
+++ trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/Submit2.html 2012-11-22 09:37:57 UTC (rev 958)
@@ -1,6 +1,6 @@
<!--
- Copyright (...
[truncated message content] |
|
From: <he...@us...> - 2012-11-12 17:37:51
|
Revision: 957
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=957&view=rev
Author: henryju
Date: 2012-11-12 17:37:41 +0000 (Mon, 12 Nov 2012)
Log Message:
-----------
Update to HtmlUnit 2.11
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
trunk/jwebunit-htmlunit-plugin/src/test/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImplTest.java
trunk/jwebunit-webdriver-plugin/src/main/java/net/sourceforge/jwebunit/webdriver/FixedHtmlUnitDriver.java
trunk/pom.xml
trunk/src/changes/changes.xml
Modified: trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java
===================================================================
--- trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java 2012-09-13 00:28:45 UTC (rev 956)
+++ trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/ResponseServletTest.java 2012-11-12 17:37:41 UTC (rev 957)
@@ -19,6 +19,10 @@
package net.sourceforge.jwebunit.tests;
+import org.junit.Test;
+
+import java.net.SocketTimeoutException;
+
import static net.sourceforge.jwebunit.junit.JWebUnit.assertHeaderEquals;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertHeaderMatches;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertHeaderNotPresent;
@@ -36,98 +40,99 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import java.net.SocketTimeoutException;
-
-import org.junit.Test;
-
/**
* Test redirection support.
- *
+ *
* @author Julien Henry
*/
public class ResponseServletTest extends JWebUnitAPITestCase {
- public void setUp() throws Exception {
- super.setUp();
- setIgnoreFailingStatusCodes(true); // ignore failing status codes
- setBaseUrl(HOST_PATH + "/ResponseServletTest");
- }
+ public void setUp() throws Exception {
+ super.setUp();
+ setIgnoreFailingStatusCodes(true); // ignore failing status codes
+ setBaseUrl(HOST_PATH + "/ResponseServletTest");
+ }
- /*
- * currently we can't get the response code from HtmlUnit unless it is a failing code
- */
- @Test public void testDefault() {
- beginAt("/SimpleForm.html");
- submit();
- assertResponseCodeBetween(200, 299);
-
- // test the headers
- assertHeaderPresent("Test");
- assertHeaderNotPresent("Not-present");
- assertHeaderEquals("Test", "test2");
- assertHeaderMatches("Header-Added", "[0-9]{2}");
- }
+ /*
+ * currently we can't get the response code from HtmlUnit unless it is a failing code
+ */
+ @Test
+ public void testDefault() {
+ beginAt("/SimpleForm.html");
+ submit();
+ assertResponseCodeBetween(200, 299);
- @Test public void testResponse200() {
- beginAt("/SimpleForm.html");
- setTextField("status", "200");
- submit();
- assertResponseCode(200);
- }
+ // test the headers
+ assertHeaderPresent("Test");
+ assertHeaderNotPresent("Not-present");
+ assertHeaderEquals("Test", "test2");
+ assertHeaderMatches("Header-Added", "[0-9]{2}");
+ }
- /*
- * HtmlUnit cannot handle a 301 without a valid Location: header
+ @Test
+ public void testResponse200() {
+ beginAt("/SimpleForm.html");
+ setTextField("status", "200");
+ submit();
+ assertResponseCode(200);
+ }
+
+ /*
+ * HtmlUnit cannot handle a 301 without a valid Location: header
@Test public void testResponse301() {
beginAt("/SimpleForm.html");
setTextField("status", "301");
submit();
assertResponseCode(301);
}
- */
+ */
- @Test public void testResponse404() {
- beginAt("/SimpleForm.html");
- assertTitleEquals("response form");
- setTextField("status", "404");
- submit();
- assertResponseCode(404);
- }
+ @Test
+ public void testResponse404() {
+ beginAt("/SimpleForm.html");
+ assertTitleEquals("response form");
+ setTextField("status", "404");
+ submit();
+ assertResponseCode(404);
+ }
- @Test public void testResponse501() {
- beginAt("/SimpleForm.html");
- assertTitleEquals("response form");
- setTextField("status", "501");
- submit();
- assertResponseCode(501);
+ @Test
+ public void testResponse501() {
+ beginAt("/SimpleForm.html");
+ assertTitleEquals("response form");
+ setTextField("status", "501");
+ submit();
+ assertResponseCode(501);
+ }
+
+ /**
+ * Issue 1674646: add support for specifying the timeout of pages
+ */
+ @Test
+ public void testTimeout() {
+
+ // test that timeout was fired
+ setTimeout(500); // specify a global timeout of 0.5 seconds (must be set before the WebConnection is initialised)
+ beginAt("/SimpleForm.html");
+ assertTitleEquals("response form");
+ setTextField("timeout", "1"); // server wait for 1 seconds
+ try {
+ submit();
+ fail("timeout was not called"); // we should not get here
+ } catch (RuntimeException e) {
+ assertTrue("timeout caused by SocketTimeoutException, but was " + e.getCause().getClass(), e.getCause() instanceof SocketTimeoutException);
}
-
- /**
- * Issue 1674646: add support for specifying the timeout of pages
- */
- @Test public void testTimeout() {
-
- // test that timeout was fired
- setTimeout(500); // specify a global timeout of 0.5 seconds (must be set before the WebConnection is initialised)
- beginAt("/SimpleForm.html");
- assertTitleEquals("response form");
- setTextField("timeout", "1"); // server wait for 1 seconds
- try {
- submit();
- fail("timeout was not called"); // we should not get here
- } catch (RuntimeException e) {
- assertTrue("timeout caused by SocketTimeoutException, but was " + e.getCause().getClass(), e.getCause() instanceof SocketTimeoutException);
- }
-
- // close and reset the browser
- closeBrowser();
-
- // test that timeout wasn't fired
- setTimeout(2000); // specify a global timeout of 2 seconds (must be set before the WebConnection is initialised)
- beginAt("/SimpleForm.html");
- assertTitleEquals("response form");
- setTextField("timeout", "1"); // server wait for 1 seconds
- submit();
- assertTextPresent("hello, world!");
- }
+ // close and reset the browser
+ closeBrowser();
+
+ // test that timeout wasn't fired
+ setTimeout(2000); // specify a global timeout of 2 seconds (must be set before the WebConnection is initialised)
+ beginAt("/SimpleForm.html");
+ assertTitleEquals("response form");
+ setTextField("timeout", "1"); // server wait for 1 seconds
+ submit();
+ assertTextPresent("hello, world!");
+ }
+
}
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2012-09-13 00:28:45 UTC (rev 956)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2012-11-12 17:37:41 UTC (rev 957)
@@ -23,7 +23,7 @@
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
- <version>2.10</version>
+ <version>2.11</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java 2012-09-13 00:28:45 UTC (rev 956)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitElementImpl.java 2012-11-12 17:37:41 UTC (rev 957)
@@ -17,194 +17,204 @@
* along with JWebUnit. If not, see <http://www.gnu.org/licenses/>.
*/
/**
- *
+ *
*/
package net.sourceforge.jwebunit.htmlunit;
-import java.util.ArrayList;
-import java.util.List;
-
-import net.sourceforge.jwebunit.api.IElement;
-
+import com.gargoylesoftware.htmlunit.html.DomElement;
import com.gargoylesoftware.htmlunit.html.DomNode;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlInput;
import com.gargoylesoftware.htmlunit.html.HtmlOption;
import com.gargoylesoftware.htmlunit.html.HtmlTextArea;
+import net.sourceforge.jwebunit.api.IElement;
+import java.util.ArrayList;
+import java.util.List;
+
/**
* HtmlUnit implementation of IElement wrapper.
- *
+ *
* @author jmwright
*
*/
public class HtmlUnitElementImpl implements IElement {
-
- /**
- * The wrapped element.
- */
- private HtmlElement element;
-
- public HtmlUnitElementImpl(HtmlElement element) {
- if (element == null)
- throw new NullPointerException("Cannot create an IElement for a null element.");
- this.element = element;
- }
+ /**
+ * The wrapped element.
+ */
+ private DomElement element;
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#attribute(java.lang.String)
- */
- public String getAttribute(String name) {
- if ("value".equals(name) && element instanceof HtmlOption) {
- // for options, we want text if no value was specified
- return ((HtmlOption) element).getValueAttribute();
- } else {
- if (!element.hasAttribute(name))
- return null;
-
- return element.getAttribute(name);
- }
- }
+ public HtmlUnitElementImpl(DomElement element) {
+ if (element == null)
+ throw new NullPointerException("Cannot create an IElement for a null element.");
+ this.element = element;
+ }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#attribute(java.lang.String)
+ */
+ public String getAttribute(String name) {
+ if ("value".equals(name) && element instanceof HtmlOption) {
+ // for options, we want text if no value was specified
+ return ((HtmlOption) element).getValueAttribute();
+ } else {
+ if (!element.hasAttribute(name))
+ return null;
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#name()
- */
- public String getName() {
- return element.getNodeName();
- }
+ return element.getAttribute(name);
+ }
+ }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#name()
+ */
+ public String getName() {
+ return element.getNodeName();
+ }
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#getChildren()
- */
- public List<IElement> getChildren() {
- List<IElement> children = new ArrayList<IElement>();
- for (HtmlElement e : element.getChildElements()) {
- if (e != null)
- children.add(new HtmlUnitElementImpl(e));
- }
- return children;
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#getChildren()
+ */
+ public List<IElement> getChildren() {
+ List<IElement> children = new ArrayList<IElement>();
+ for (DomElement e : element.getChildElements()) {
+ if (e != null)
+ children.add(new HtmlUnitElementImpl(e));
+ }
+ return children;
+ }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#getParent()
+ */
+ public IElement getParent() {
+ DomNode p = element.getParentNode();
+ while (true) {
+ if (p == null)
+ return null;
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#getParent()
- */
- public IElement getParent() {
- DomNode p = element.getParentNode();
- while (true) {
- if (p == null)
- return null;
-
- if (p instanceof HtmlElement)
- return new HtmlUnitElementImpl((HtmlElement) p);
-
- // get next parent
- p = p.getParentNode();
- }
- }
+ if (p instanceof HtmlElement)
+ return new HtmlUnitElementImpl((HtmlElement) p);
+ // get next parent
+ p = p.getParentNode();
+ }
+ }
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#getTextContent()
- */
- public String getTextContent() {
- return element.getTextContent();
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#getTextContent()
+ */
+ public String getTextContent() {
+ return element.getTextContent();
+ }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#getElement(java.lang.String)
+ */
+ public IElement getElement(String xpath) {
+ // if this fails with a ClassCastException, use getElements().get(0) (performance penalty)
+ return new HtmlUnitElementImpl((HtmlElement) element.getFirstByXPath(xpath));
+ }
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#getElement(java.lang.String)
- */
- public IElement getElement(String xpath) {
- // if this fails with a ClassCastException, use getElements().get(0) (performance penalty)
- return new HtmlUnitElementImpl((HtmlElement) element.getFirstByXPath(xpath));
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#getElements(java.lang.String)
+ */
+ public List<IElement> getElements(String xpath) {
+ List<IElement> elements = new ArrayList<IElement>();
+ for (Object o : element.getByXPath(xpath)) {
+ if (o instanceof HtmlElement)
+ elements.add(new HtmlUnitElementImpl((HtmlElement) o));
+ }
+ return elements;
+ }
+ public String toString() {
+ return "IElement[name=" + getName() + " wrapped=" + element + "]";
+ }
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#getElements(java.lang.String)
- */
- public List<IElement> getElements(String xpath) {
- List<IElement> elements = new ArrayList<IElement>();
- for (Object o : element.getByXPath(xpath)) {
- if (o instanceof HtmlElement)
- elements.add(new HtmlUnitElementImpl((HtmlElement) o));
- }
- return elements;
- }
-
- public String toString() {
- return "IElement[name=" + getName() + " wrapped=" + element + "]";
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#setAttribute(java.lang.String)
+ */
+ public void setAttribute(String string) {
+ element.setAttributeNS(null, string, "1");
+ }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#setAttribute(java.lang.String, java.lang.String)
+ */
+ public void setAttribute(String name, String value) {
+ if ("value".equals(name) && element instanceof HtmlInput) {
+ // for HtmlInputs, we want to run any onChange code if the value changes
+ ((HtmlInput) element).setValueAttribute(value);
+ } else {
+ element.setAttribute(name, value);
+ }
+ }
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#setAttribute(java.lang.String)
- */
- public void setAttribute(String string) {
- element.setAttributeNS(null, string, "1");
- }
+ /*
+ * (non-Javadoc)
+ *
+ * @see net.sourceforge.jwebunit.api.IElement#setTextContent(java.lang.String)
+ */
+ public void setTextContent(String value) {
+ if (element instanceof HtmlTextArea) {
+ ((HtmlTextArea) element).setText(value);
+ } else {
+ element.setTextContent(value);
+ }
+ }
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((element == null) ? 0 : element.hashCode());
+ return result;
+ }
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#setAttribute(java.lang.String, java.lang.String)
- */
- public void setAttribute(String name, String value) {
- if ("value".equals(name) && element instanceof HtmlInput) {
- // for HtmlInputs, we want to run any onChange code if the value changes
- ((HtmlInput) element).setValueAttribute(value);
- } else {
- element.setAttribute(name, value);
- }
- }
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final HtmlUnitElementImpl other = (HtmlUnitElementImpl) obj;
+ if (element == null) {
+ if (other.element != null)
+ return false;
+ } else if (!element.equals(other.element))
+ return false;
+ return true;
+ }
+ /**
+ * Return the unwrapped HtmlUnit element that this IElement represents.
+ *
+ * @return the HtmlUnit element this IElement represents.
+ */
+ public DomElement getHtmlElement() {
+ return element;
+ }
- /* (non-Javadoc)
- * @see net.sourceforge.jwebunit.api.IElement#setTextContent(java.lang.String)
- */
- public void setTextContent(String value) {
- if (element instanceof HtmlTextArea) {
- ((HtmlTextArea) element).setText(value);
- } else {
- element.setTextContent(value);
- }
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((element == null) ? 0 : element.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- final HtmlUnitElementImpl other = (HtmlUnitElementImpl) obj;
- if (element == null) {
- if (other.element != null)
- return false;
- } else if (!element.equals(other.element))
- return false;
- return true;
- }
-
- /**
- * Return the unwrapped HtmlUnit element that this IElement represents.
- *
- * @return the HtmlUnit element this IElement represents.
- */
- public HtmlElement getHtmlElement() {
- return element;
- }
-
}
Modified: trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2012-09-13 00:28:45 UTC (rev 956)
+++ trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java 2012-11-12 17:37:41 UTC (rev 957)
@@ -18,51 +18,6 @@
*/
package net.sourceforge.jwebunit.htmlunit;
-import com.gargoylesoftware.htmlunit.TopLevelWindow;
-
-import net.sourceforge.jwebunit.api.HttpHeader;
-
-import org.apache.http.auth.AuthScope;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.InetAddress;
-import java.net.URL;
-import java.net.UnknownHostException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import net.sourceforge.jwebunit.api.IElement;
-import net.sourceforge.jwebunit.api.ITestingEngine;
-import net.sourceforge.jwebunit.exception.ExpectedJavascriptAlertException;
-import net.sourceforge.jwebunit.exception.ExpectedJavascriptConfirmException;
-import net.sourceforge.jwebunit.exception.ExpectedJavascriptPromptException;
-import net.sourceforge.jwebunit.exception.TestingEngineResponseException;
-import net.sourceforge.jwebunit.exception.UnableToSetFormException;
-import net.sourceforge.jwebunit.exception.UnexpectedJavascriptAlertException;
-import net.sourceforge.jwebunit.exception.UnexpectedJavascriptConfirmException;
-import net.sourceforge.jwebunit.exception.UnexpectedJavascriptPromptException;
-import net.sourceforge.jwebunit.html.Cell;
-import net.sourceforge.jwebunit.html.Row;
-import net.sourceforge.jwebunit.html.Table;
-import net.sourceforge.jwebunit.javascript.JavascriptAlert;
-import net.sourceforge.jwebunit.javascript.JavascriptConfirm;
-import net.sourceforge.jwebunit.javascript.JavascriptPrompt;
-import net.sourceforge.jwebunit.util.TestContext;
-
-import org.apache.regexp.RE;
-import org.apache.regexp.RESyntaxException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
import com.gargoylesoftware.htmlunit.AlertHandler;
import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.ConfirmHandler;
@@ -75,6 +30,7 @@
import com.gargoylesoftware.htmlunit.PromptHandler;
import com.gargoylesoftware.htmlunit.RefreshHandler;
import com.gargoylesoftware.htmlunit.TextPage;
+import com.gargoylesoftware.htmlunit.TopLevelWindow;
import com.gargoylesoftware.htmlunit.UnexpectedPage;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.WebResponse;
@@ -103,2313 +59,2344 @@
import com.gargoylesoftware.htmlunit.html.HtmlTable;
import com.gargoylesoftware.htmlunit.html.HtmlTableCell;
import com.gargoylesoftware.htmlunit.html.HtmlTableRow;
-import com.gargoylesoftware.htmlunit.html.HtmlTextArea;
import com.gargoylesoftware.htmlunit.html.HtmlTableRow.CellIterator;
+import com.gargoylesoftware.htmlunit.html.HtmlTextArea;
import com.gargoylesoftware.htmlunit.util.Cookie;
import com.gargoylesoftware.htmlunit.util.NameValuePair;
import com.gargoylesoftware.htmlunit.xml.XmlPage;
+import net.sourceforge.jwebunit.api.HttpHeader;
+import net.sourceforge.jwebunit.api.IElement;
+import net.sourceforge.jwebunit.api.ITestingEngine;
+import net.sourceforge.jwebunit.exception.ExpectedJavascriptAlertException;
+import net.sourceforge.jwebunit.exception.ExpectedJavascriptConfirmException;
+import net.sourceforge.jwebunit.exception.ExpectedJavascriptPromptException;
+import net.sourceforge.jwebunit.exception.TestingEngineResponseException;
+import net.sourceforge.jwebunit.exception.UnableToSetFormException;
+import net.sourceforge.jwebunit.exception.UnexpectedJavascriptAlertException;
+import net.sourceforge.jwebunit.exception.UnexpectedJavascriptConfirmException;
+import net.sourceforge.jwebunit.exception.UnexpectedJavascriptPromptException;
+import net.sourceforge.jwebunit.html.Cell;
+import net.sourceforge.jwebunit.html.Row;
+import net.sourceforge.jwebunit.html.Table;
+import net.sourceforge.jwebunit.javascript.JavascriptAlert;
+import net.sourceforge.jwebunit.javascript.JavascriptConfirm;
+import net.sourceforge.jwebunit.javascript.JavascriptPrompt;
+import net.sourceforge.jwebunit.util.TestContext;
+import org.apache.http.auth.AuthScope;
+import org.apache.regexp.RE;
+import org.apache.regexp.RESyntaxException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.InetAddress;
+import java.net.URL;
+import java.net.UnknownHostException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
/**
* Acts as the wrapper for HtmlUnit access. A testing engine is initialized with a given URL, and maintains conversational state
* as the dialog progresses through link navigation, form submission, etc.
- *
+ *
* @author Julien Henry
- *
+ *
*/
public class HtmlUnitTestingEngineImpl implements ITestingEngine {
- /**
- * Logger for this class.
- */
- private final Logger logger = LoggerFactory.getLogger(HtmlUnitTestingEngineImpl.class);
+ /**
+ * Logger for this class.
+ */
+ private final Logger logger = LoggerFactory.getLogger(HtmlUnitTestingEngineImpl.class);
- /**
- * holder for alternative refresh handler.
- */
- private RefreshHandler refreshHandler;
- /**
- * Encapsulate browser abilities.
- */
- private WebClient wc;
+ /**
+ * holder for alternative refresh handler.
+ */
+ private RefreshHandler refreshHandler;
+ /**
+ * Encapsulate browser abilities.
+ */
+ private WebClient wc;
- /**
- * The currently selected window.
- */
- private WebWindow win;
+ /**
+ * The currently selected window.
+ */
+ private WebWindow win;
- /**
- * A ref to the test context.
- */
- private TestContext testContext;
+ /**
+ * A ref to the test context.
+ */
+ private TestContext testContext;
- /**
- * The currently selected form.
- */
- private HtmlForm form;
+ /**
+ * The currently selected form.
+ */
+ private HtmlForm form;
- /**
- * Is Javascript enabled.
- */
- private boolean jsEnabled = true;
+ /**
+ * Is Javascript enabled.
+ */
+ private boolean jsEnabled = true;
- /**
- * Should throw exception on Javascript error.
- */
- private boolean throwExceptionOnScriptError = true;
+ /**
+ * Should throw exception on Javascript error.
+ */
+ private boolean throwExceptionOnScriptError = true;
- /**
- * Javascript alerts.
- */
- private List<JavascriptAlert> expectedJavascriptAlerts = new LinkedList<JavascriptAlert>();
+ /**
+ * Javascript alerts.
+ */
+ private List<JavascriptAlert> expectedJavascriptAlerts = new LinkedList<JavascriptAlert>();
- /**
- * Javascript confirms.
- */
- private List<JavascriptConfirm> expectedJavascriptConfirms = new LinkedList<JavascriptConfirm>();
+ /**
+ * Javascript confirms.
+ */
+ private List<JavascriptConfirm> expectedJavascriptConfirms = new LinkedList<JavascriptConfirm>();
- /**
- * Javascript prompts.
- */
- private List<JavascriptPrompt> expectedJavascriptPrompts = new LinkedList<JavascriptPrompt>();
-
- /**
- * The default browser version.
- */
- private BrowserVersion defaultBrowserVersion = BrowserVersion.FIREFOX_3_6;
-
- /**
+ /**
+ * Javascript prompts.
+ */
+ private List<JavascriptPrompt> expectedJavascriptPrompts = new LinkedList<JavascriptPrompt>();
+
+ /**
+ * The default browser version.
+ */
+ private BrowserVersion defaultBrowserVersion = BrowserVersion.FIREFOX_3_6;
+
+ /**
* Should we ignore failing status codes?
*/
- private boolean ignoreFailingStatusCodes = false;
-
- /**
- * Do we provide a timeout limit (in seconds)? Default 0 = unlimited timeout.
- */
- private int timeout = 0;
-
- // Implementation of IJWebUnitDialog
+ private boolean ignoreFailingStatusCodes = false;
- /**
- * Initializes default HtmlUnit testing engine implementation.
- */
- public HtmlUnitTestingEngineImpl() {
- }
+ /**
+ * Do we provide a timeout limit (in seconds)? Default 0 = unlimited timeout.
+ */
+ private int timeout = 0;
- /**
- * Initializes HtmlUnit testing engine implementation with web client.
- *
- * @param client web client
- */
- HtmlUnitTestingEngineImpl(WebClient client) {
- this.wc = client;
- }
+ // Implementation of IJWebUnitDialog
- /**
- * Begin a dialog with an initial URL and test client context.
- *
- * @param initialURL absolute url at which to begin dialog.
- * @param context contains context information for the test client.
- * @throws TestingEngineResponseException
- */
- public void beginAt(URL initialURL, TestContext context)
- throws TestingEngineResponseException {
- this.setTestContext(context);
- initWebClient();
- gotoPage(initialURL);
- }
+ /**
+ * Initializes default HtmlUnit testing engine implementation.
+ */
+ public HtmlUnitTestingEngineImpl() {
+ }
- /**
- * Close the browser and check that all expected Javascript alerts, confirms and
- * prompts have been taken care of.
- */
- public void closeBrowser() throws ExpectedJavascriptAlertException,
- ExpectedJavascriptConfirmException,
- ExpectedJavascriptPromptException {
- if (wc!=null) {
- wc.closeAllWindows();
- wc = null;
- }
- form = null; // reset current form
- if (this.expectedJavascriptAlerts.size() > 0) {
- throw new ExpectedJavascriptAlertException(
- ((JavascriptAlert) (expectedJavascriptAlerts.get(0)))
- .getMessage());
- }
- if (this.expectedJavascriptConfirms.size() > 0) {
- throw new ExpectedJavascriptConfirmException(
- ((JavascriptConfirm) (expectedJavascriptConfirms.get(0)))
- .getMessage());
- }
- if (this.expectedJavascriptPrompts.size() > 0) {
- throw new ExpectedJavascriptPromptException(
- ((JavascriptPrompt) (expectedJavascriptPrompts.get(0)))
- .getMessage());
- }
+ /**
+ * Initializes HtmlUnit testing engine implementation with web client.
+ *
+ * @param client web client
+ */
+ HtmlUnitTestingEngineImpl(WebClient client) {
+ this.wc = client;
+ }
- }
+ /**
+ * Begin a dialog with an initial URL and test client context.
+ *
+ * @param initialURL absolute url at which to begin dialog.
+ * @param context contains context information for the test client.
+ * @throws TestingEngineResponseException
+ */
+ public void beginAt(URL initialURL, TestContext context)
+ throws TestingEngineResponseException {
+ this.setTestContext(context);
+ initWebClient();
+ gotoPage(initialURL);
+ }
- /**
- * Go to a particular page.
- *
- * @throws TestingEngineResponseException if an error response code is encountered
- * and ignoreFailingStatusCodes is not enabled.
- */
- public void gotoPage(URL initialURL) throws TestingEngineResponseException {
- try {
- wc.getPage(initialURL);
- win = wc.getCurrentWindow();
- form = null;
- } catch (FailingHttpStatusCodeException ex) {
- // only throw exception if necessary
- if (!ignoreFailingStatusCodes) {
- throw new TestingEngineResponseException(ex.getStatusCode(),
- "unexpected status code ["+ex.getStatusCode()+"] at URL: ["+initialURL+"]", ex);
- }
- } catch (IOException ex) {
- throw new RuntimeException(ex);
- }
+ /**
+ * Close the browser and check that all expected Javascript alerts, confirms and
+ * prompts have been taken care of.
+ */
+ public void closeBrowser() throws ExpectedJavascriptAlertException,
+ ExpectedJavascriptConfirmException,
+ ExpectedJavascriptPromptException {
+ if (wc != null) {
+ wc.closeAllWindows();
+ wc = null;
}
-
- /**
- * @see net.sourceforge.jwebunit.api.IJWebUnitDialog#setScriptingEnabled(boolean)
- */
- public void setScriptingEnabled(boolean value) {
- // This variable is used to set Javascript before wc is instancied
- jsEnabled = value;
- if (wc != null) {
- wc.setJavaScriptEnabled(value);
- }
+ form = null; // reset current form
+ if (this.expectedJavascriptAlerts.size() > 0) {
+ throw new ExpectedJavascriptAlertException(
+ ((JavascriptAlert) (expectedJavascriptAlerts.get(0)))
+ .getMessage());
}
-
- public void setThrowExceptionOnScriptError(boolean value) {
- throwExceptionOnScriptError = value;
- if (wc != null) {
- wc.setThrowExceptionOnScriptError(throwExceptionOnScriptError);
- }
+ if (this.expectedJavascriptConfirms.size() > 0) {
+ throw new ExpectedJavascriptConfirmException(
+ ((JavascriptConfirm) (expectedJavascriptConfirms.get(0)))
+ .getMessage());
}
-
- public List<javax.servlet.http.Cookie> getCookies() {
- List<javax.servlet.http.Cookie> result = new LinkedList<javax.servlet.http.Cookie>();
- Set<Cookie> cookies = wc.getCookieManager().getCookies();
- for (Cookie cookie : cookies) {
- javax.servlet.http.Cookie c = new javax.servlet.http.Cookie(
- cookie.getName(), cookie.getValue());
- c.setComment(cookie.toHttpClient().getComment());
- c.setDomain(cookie.getDomain());
- Date expire = cookie.toHttpClient().getExpiryDate();
- if (expire == null) {
- c.setMaxAge(-1);
- } else {
- Date now = Calendar.getInstance().getTime();
- // Convert milli-second to second
- Long second = Long.valueOf((expire.getTime() - now.getTime()) / 1000);
- c.setMaxAge(second.intValue());
- }
- c.setPath(cookie.getPath());
- c.setSecure(cookie.toHttpClient().isSecure());
- c.setVersion(cookie.toHttpClient().getVersion());
- result.add(c);
- }
- return result;
+ if (this.expectedJavascriptPrompts.size() > 0) {
+ throw new ExpectedJavascriptPromptException(
+ ((JavascriptPrompt) (expectedJavascriptPrompts.get(0)))
+ .getMessage());
}
- public boolean hasWindow(String windowName) {
- try {
- getWindow(windowName);
- } catch (WebWindowNotFoundException e) {
- return false;
- }
- return true;
- }
+ }
- public boolean hasWindowByTitle(String title) {
- return getWindowByTitle(title) != null;
+ /**
+ * Go to a particular page.
+ *
+ * @throws TestingEngineResponseException if an error response code is encountered
+ * and ignoreFailingStatusCodes is not enabled.
+ */
+ public void gotoPage(URL initialURL) throws TestingEngineResponseException {
+ try {
+ wc.getPage(initialURL);
+ win = wc.getCurrentWindow();
+ form = null;
+ } catch (FailingHttpStatusCodeException ex) {
+ throw new TestingEngineResponseException(ex.getStatusCode(),
+ "unexpected status code [" + ex.getStatusCode() + "] at URL: [" + initialURL + "]", ex);
+ } catch (IOException ex) {
+ throw new RuntimeException(ex);
}
+ }
- /**
- * Make the window with the given name in the current conversation active.
- *
- * @param windowName
- */
- public void gotoWindow(String windowName) {
- setMainWindow(getWindow(windowName));
+ /**
+ * @see net.sourceforge.jwebunit.api.IJWebUnitDialog#setScriptingEnabled(boolean)
+ */
+ public void setScriptingEnabled(boolean value) {
+ // This variable is used to set Javascript before wc is instancied
+ jsEnabled = value;
+ if (wc != null) {
+ wc.getOptions().setJavaScriptEnabled(value);
}
+ }
- public void gotoWindow(int windowID) {
- setMainWindow((WebWindow) wc.getWebWindows().get(windowID));
+ public void setThrowExceptionOnScriptError(boolean value) {
+ throwExceptionOnScriptError = value;
+ if (wc != null) {
+ wc.getOptions().setThrowExceptionOnScriptError(value);
}
+ }
- public int getWindowCount() {
- return wc.getWebWindows().size();
+ public List<javax.servlet.http.Cookie> getCookies() {
+ List<javax.servlet.http.Cookie> result = new LinkedList<javax.servlet.http.Cookie>();
+ Set<Cookie> cookies = wc.getCookieManager().getCookies();
+ for (Cookie cookie : cookies) {
+ javax.servlet.http.Cookie c = new javax.servlet.http.Cookie(
+ cookie.getName(), cookie.getValue());
+ c.setComment(cookie.toHttpClient().getComment());
+ c.setDomain(cookie.getDomain());
+ Date expire = cookie.toHttpClient().getExpiryDate();
+ if (expire == null) {
+ c.setMaxAge(-1);
+ } else {
+ Date now = Calendar.getInstance().getTime();
+ // Convert milli-second to second
+ Long second = Long.valueOf((expire.getTime() - now.getTime()) / 1000);
+ c.setMaxAge(second.intValue());
+ }
+ c.setPath(cookie.getPath());
+ c.setSecure(cookie.toHttpClient().isSecure());
+ c.setVersion(cookie.toHttpClient().getVersion());
+ result.add(c);
}
+ return result;
+ }
- /**
- * Goto first window with the given title.
- *
- * @param title
- */
- public void gotoWindowByTitle(String title) {
- WebWindow window = getWindowByTitle(title);
- if (window != null) {
- setMainWindow(window);
- }
- else {
- throw new RuntimeException("No window found with title [" + title + "]");
- }
+ public boolean hasWindow(String windowName) {
+ try {
+ getWindow(windowName);
+ } catch (WebWindowNotFoundException e) {
+ return false;
}
+ return true;
+ }
- /**
- * Close the current window.
- */
- public void closeWindow() {
- if (win != null) {
- ((TopLevelWindow) win.getTopWindow()).close();
- win = wc.getCurrentWindow();
- form = null;
- }
+ public boolean hasWindowByTitle(String title) {
+ return getWindowByTitle(title) != null;
+ }
- }
+ /**
+ * Make the window with the given name in the current conversation active.
+ *
+ * @param windowName
+ */
+ public void gotoWindow(String windowName) {
+ setMainWindow(getWindow(windowName));
+ }
- /**
- * {@inheritDoc}
- */
- public boolean hasFrame(String frameNameOrId) {
- return getFrame(frameNameOrId) != null;
- }
+ public void gotoWindow(int windowID) {
+ setMainWindow((WebWindow) wc.getWebWindows().get(windowID));
+ }
- /**
- * {@inheritDoc}
- */
- public void gotoFrame(String frameNameOrId) {
- WebWindow frame = getFrame(frameNameOrId);
- if (frame == null) {
- throw new RuntimeException("No frame found in current page with name or id [" + frameNameOrId + "]");
- }
- win = frame;
- }
+ public int getWindowCount() {
+ return wc.getWebWindows().size();
+ }
- /**
- * {@inheritDoc}
- */
- public void setWorkingForm(int index) {
- setWorkingForm(getForm(index));
+ /**
+ * Goto first window with the given title.
+ *
+ * @param title
+ */
+ public void gotoWindowByTitle(String title) {
+ WebWindow window = getWindowByTitle(title);
+ if (window != null) {
+ setMainWindow(window);
}
-
- /**
- * {@inheritDoc}
- */
- public void setWorkingForm(String nameOrId, int index) {
- setWorkingForm(getForm(nameOrId, index));
+ else {
+ throw new RuntimeException("No window found with title [" + title + "]");
}
+ }
- /**
- * Return true if the current response contains a form.
- */
- public boolean hasForm() {
- return ((HtmlPage) win.getEnclosedPage()).getForms().size() > 0;
+ /**
+ * Close the current window.
+ */
+ public void closeWindow() {
+ if (win != null) {
+ ((TopLevelWindow) win.getTopWindow()).close();
+ win = wc.getCurrentWindow();
+ form = null;
}
- /**
- * Return true if the current response contains a specific form.
- *
- * @param nameOrID name of id of the form to check for.
- */
- public boolean hasForm(String nameOrID) {
- return getForm(nameOrID) != null;
- }
+ }
- public boolean hasFormParameterNamed(String paramName) {
- for (HtmlElement e : getCurrentPage().getHtmlElementDescendants()) {
- if (e.getAttribute("name").equals(paramName)) {
- // set the working form if none has been set
- if (e.getEnclosingForm() != null && getWorkingForm() == null)
- setWorkingForm( e.getEnclosingForm() );
- return true;
- }
- }
- return false;
- }
+ /**
+ * {@inheritDoc}
+ */
+ public boolean hasFrame(String frameNameOrId) {
+ return getFrame(frameNameOrId) != null;
+ }
- /**
- * Return the current value of a text input element with name <code>paramName</code>.
- *
- * @param paramName name of the input element. TODO: Find a way to handle multiple text input element with same
- * name.
- */
- public String getTextFieldValue(String paramName) {
- // first try the current form
- if (form != null) {
- for (HtmlElement e : form.getHtmlElementDescendants()) {
- if (e instanceof HtmlInput && e.getAttribute("name").equals(paramName)) {
- // we found it
- return ((HtmlInput) e).getValueAttribute();
- }
- if (e instanceof HtmlTextArea && e.getAttribute("name").equals(paramName)) {
- // we found it
- return ((HtmlTextArea) e).getText();
- }
- }
- }
-
- // not in the current form: try *all* elements
- HtmlElement outside_element = getHtmlElementWithAttribute("name", paramName);
- if (outside_element != null) {
- if (outside_element instanceof HtmlInput) {
- // set current form if not null
- if (outside_element.getEnclosingForm() != null)
- form = outside_element.getEnclosingForm();
- return ((HtmlInput) outside_element).getValueAttribute();
- }
- if (outside_element instanceof HtmlTextArea) {
- // set current form if not null
- if (outside_element.getEnclosingForm() != null)
- form = outside_element.getEnclosingForm();
- return ((HtmlTextArea) outside_element).getText();
- }
- }
-
- // we can't find it anywhere
- throw new RuntimeException(
- "getTextFieldParameterValue failed, text field with name ["
- + paramName + "] does not exist.");
+ /**
+ * {@inheritDoc}
+ */
+ public void gotoFrame(String frameNameOrId) {
+ WebWindow frame = getFrame(frameNameOrId);
+ if (frame == null) {
+ throw new RuntimeException("No frame found in current page with name or id [" + frameNameOrId + "]");
}
+ win = frame;
+ }
- /**
- * Return the current value of a hidden input element with name <code>paramName</code>.
- *
- * @param paramName name of the input element. TODO: Find a way to handle multiple hidden input element with same
- * name.
- */
- public String getHiddenFieldValue(String paramName) {
- // first try the current form
- if (form != null) {
- for (HtmlElement e : form.getHtmlElementDescendants()) {
- if (e instanceof HtmlHiddenInput && e.getAttribute("name").equals(paramName)) {
- // we found it
- return ((HtmlInput) e).getValueAttribute();
- }
- }
- }
+ /**
+ * {@inheritDoc}
+ */
+ public void setWorkingForm(int index) {
+ setWorkingForm(getForm(index));
+ }
- // not in the current form: try *all* elements
- HtmlElement outside_element = getHtmlElementWithAttribute("name", paramName);
- if (outside_element != null) {
- if (outside_element instanceof HtmlHiddenInput) {
- // set current form if not null
- if (outside_element.getEnclosingForm() != null)
- form = outside_element.getEnclosingForm();
- return ((HtmlHiddenInput) outside_element).getValueAttribute();
- }
- }
-
- // we can't find it anywhere
- throw new RuntimeException("No hidden field with name [" + paramName
- + "] was found.");
+ /**
+ * {@inheritDoc}
+ */
+ public void setWorkingForm(String nameOrId, int index) {
+ setWorkingForm(getForm(nameOrId, index));
+ }
+
+ /**
+ * Return true if the current response contains a form.
+ */
+ public boolean hasForm() {
+ return ((HtmlPage) win.getEnclosedPage()).getForms().size() > 0;
+ }
+
+ /**
+ * Return true if the current response contains a specific form.
+ *
+ * @param nameOrID name of id of the form to check for.
+ */
+ public boolean hasForm(String nameOrID) {
+ return getForm(nameOrID) != null;
+ }
+
+ public boolean hasFormParameterNamed(String paramName) {
+ for (HtmlElement e : getCurrentPage().getHtmlElementDescendants()) {
+ if (e.getAttribute("name").equals(paramName)) {
+ // set the working form if none has been set
+ if (e.getEnclosingForm() != null && getWorkingForm() == null)
+ setWorkingForm(e.getEnclosingForm());
+ return true;
+ }
}
+ return false;
+ }
- /**
- * Set a form text, password input element or textarea to the provided value.
- *
- * @param fieldName name of the input element or textarea
- * @param text parameter value to submit for the element.
- */
- public void setTextField(String paramName, String text) {
- // first try the current form
- if (form != null) {
- for (HtmlElement e : form.getHtmlElementDescendants()) {
- if (e instanceof HtmlInput && e.getAttribute("name").equals(paramName)) {
- // we found it
- ((HtmlInput) e).setValueAttribute(text);
- return;
- }
- if (e instanceof HtmlTextArea && e.getAttribute("name").equals(paramName)) {
- // we found it
- ((HtmlTextArea) e).setText(text);
- return;
- }
- }
- }
-
- // not in the current form: try *all* elements
- HtmlElement outside_element = getHtmlElementWithAttribute("name", paramName);
- if (outside_element != null) {
- if (outside_element instanceof HtmlInput) {
- ((HtmlInput) outside_element).setValueAttribute(text);
- // set current form if not null
- if (outside_element.getEnclosingForm() != null)
- form = outside_element.getEnclosingForm();
- return;
- }
- if (outside_element instanceof HtmlTextArea) {
- ((HtmlTextArea) outside_element).setText(text);
- // set current form if not null
- if (outside_element.getEnclosingForm() != null)
- form = outside_element.getEnclosingForm();
- return;
- }
+ /**
+ * Return the current value of a text input element with name <code>paramName</code>.
+ *
+ * @param paramName name of the input element. TODO: Find a way to handle multiple text input element with same
+ * name.
+ */
+ public String getTextFieldValue(String paramName) {
+ // first try the current form
+ if (form != null) {
+ for (HtmlElement e : form.getHtmlElementDescendants()) {
+ if (e instanceof HtmlInput && e.getAttribute("name").equals(paramName)) {
+ // we found it
+ return ((HtmlInput) e).getValueAttribute();
}
-
- // we can't find it anywhere
- throw new RuntimeException("No text field with name [" + paramName
- + "] was found.");
- }
-
- /**
- * Set a form hidden element to the provided value.
- *
- * @param fieldName name of the hidden input element
- * @param paramValue parameter value to submit for the element.
- */
- public void setHiddenField(String fieldName, String text) {
- // first try the current form
- if (form != null) {
- for (HtmlElement e : form.getHtmlElementDescendants()) {
- if (e instanceof HtmlHiddenInput && e.getAttribute("name").equals(fieldName)) {
- // we found it
- ((HtmlHiddenInput) e).setValueAttribute(text);
- return;
- }
- }
- }
-
- // not in the current form: try *all* elements
- HtmlElement outside_element = getHtmlElementWithAttribute("name", fieldName);
- if (outside_element != null) {
- if (outside_element instanceof HtmlHiddenInput) {
- ((HtmlHiddenInput) outside_element).setValueAttribute(text);
- // set current form if not null
- if (outside_element.getEnclosingForm() != null)
- form = outside_element.getEnclosingForm();
- return;
- }
+ if (e instanceof HtmlTextArea && e.getAttribute("name").equals(paramName)) {
+ // we found it
+ return ((HtmlTextArea) e).getText();
}
-
- // we can't find it anywhere
- throw new RuntimeException("No hidden field with name [" + fieldName
- + "] was found.");
+ }
}
- /**
- * Return a string array of select box option values.
- *
- * @param selectName name of the select box.
- */
- public String[] getSelectOptionValues(String selectName) {
- HtmlSelect sel = getForm().getSelectByName(selectName);
- ArrayList<String> result = new ArrayList<String>();
- for (HtmlOption opt : sel.getOptions()) {
- result.add(opt.getValueAttribute());
- }
- return result.toArray(new String[result.size()]);
+ // not in the current form: try *all* elements
+ HtmlElement outside_element = getHtmlElementWithAttribute("name", paramName);
+ if (outside_element != null) {
+ if (outside_element instanceof HtmlInput) {
+ // set current form if not null
+ if (outside_element.getEnclosingForm() != null)
+ form = outside_element.getEnclosingForm();
+ return ((HtmlInput) outside_element).getValueAttribute();
+ }
+ if (outside_element instanceof HtmlTextArea) {
+ // set current form if not null
+ if (outside_element.getEnclosingForm() != null)
+ form = outside_element.getEnclosingForm();
+ return ((HtmlTextArea) outside_element).getText();
+ }
}
- /**
- * Return a string array of the Nth select box option values.
- *
- * @param selectName name of the select box.
- * @param index the 0-based index when more than one
- * select with the same name is expected.
- */
- public String[] getSelectOptionValues(String selectName, int index) {
- List<HtmlSelect> sels = getForm().getSelectsByName(selectName);
- if ( sels == null || sels.size() < index+1) {
- throw new RuntimeException("Did not find select with name [" + selectName
- + "] at index " + index);
- }
- HtmlSelect sel = sels.get(index);
- ArrayList<String> result = new ArrayList<String>();
- for (HtmlOption opt : sel.getOptions()) {
- result.add(opt.getValueAttribute());
+ // we can't find it anywhere
+ throw new RuntimeException(
+ "getTextFieldParameterValue failed, text field with name ["
+ + paramName + "] does not exist.");
+ }
+
+ /**
+ * Return the current value of a hidden input element with name <code>paramName</code>.
+ *
+ * @param paramName name of the input element. TODO: Find a way to handle multiple hidden input element with same
+ * name.
+ */
+ public String getHiddenFieldValue(String paramName) {
+ // first try the current form
+ if (form != null) {
+ for (HtmlElement e : form.getHtmlElementDescendants()) {
+ if (e instanceof HtmlHiddenInput && e.getAttribute("name").equals(paramName)) {
+ // we found it
+ return ((HtmlInput) e).getValueAttribute();
}
- return (String[]) result.toArray(new String[result.size()]);
+ }
}
-
- private String[] getSelectedOptions(HtmlSelect sel) {
- String[] result = new String[sel.getSelectedOptions().size()];
- int i = 0;
- for (HtmlOption opt : sel.getSelectedOptions()) {
- result[i++] = opt.getValueAttribute();
- }
- return result;
- }
-
- public String[] getSelectedOptions(String selectName) {
- HtmlSelect sel = getForm().getSelectByName(selectName);
- return getSelectedOptions(sel);
+ // not in the current form: try *all* elements
+ HtmlElement outside_element = getHtmlElementWithAttribute("name", paramName);
+ if (outside_element != null) {
+ if (outside_element instanceof HtmlHiddenInput) {
+ // set current form if not null
+ if (outside_element.getEnclosingForm() != null)
+ form = outside_element.getEnclosingForm();
+ return ((HtmlHiddenInput) outside_element).getValueAttribute();
+ }
}
- public String[] getSelectedOptions(String selectName, int index) {
- List<HtmlSelect> sels = getForm().getSelectsByName(selectName);
- if ( sels == null || sels.size() < index+1) {
- throw new RuntimeException("Did not find select with name [" + selectName
- + "] at index " + index);
- }
- HtmlSelect sel = sels.get(index);
- return getSelectedOptions(sel);
- }
+ // we can't find it anywhere
+ throw new RuntimeException("No hidden field with name [" + paramName
+ + "] was found.");
+ }
-
- private String getSelectOptionValueForLabel(HtmlSelect sel, String label) {
- for (HtmlOption opt : sel.getOptions()) {
- if (opt.asText().equals(label)) {
- return opt.getValueAttribute();
- }
+ /**
+ * Set a form text, password input element or textarea to the provided value.
+ *
+ * @param fieldName name of the input element or textarea
+ * @param text parameter value to submit for the element.
+ */
+ public void setTextField(String paramName, String text) {
+ // first try the current form
+ if (form != null) {
+ for (HtmlElement e : form.getHtmlElementDescendants()) {
+ if (e instanceof HtmlInput && e.getAttribute("name").equals(paramName)) {
+ // we found it
+ ((HtmlInput) e).setValueAttribute(text);
+ return;
}
- throw new RuntimeException("Unable to find option " + label + " for "
- + sel.getNameAttribute());
+ if (e instanceof HtmlTextArea && e.getAttribute("name").equals(paramName)) {
+ // we found it
+ ((HtmlTextArea) e).setText(text);
+ return;
+ }
+ }
}
- public String getSelectOptionValueForLabel(String selectName, String label) {
- HtmlSelect sel = getForm().getSelectByName(selectName);
- return getSelectOptionValueForLabel(sel, label);
+ // not in the current form: try *all* elements
+ HtmlElement outside_element = getHtmlElementWithAttribute("name", paramName);
+ if (outside_element != null) {
+ if (outside_element instanceof HtmlInput) {
+ ((HtmlInput) outside_element).setValueAttribute(text);
+ // set current form if not null
+ if (outside_element.getEnclosingForm() != null)
+ form = outside_element.getEnclosingForm();
+ return;
+ }
+ if (outside_element instanceof HtmlTextArea) {
+ ((HtmlTextArea) outside_element).setText(text);
+ // set current form if not null
+ if (outside_element.getEnclosingForm() != null)
+ form = outside_element.getEnclosingForm();
+ return;
+ }
}
-
- public String getSelectOptionValueForLabel(String selectName, int index, String label) {
- List<HtmlSelect> sels = getForm().getSelectsByName(selectName);
- if ( sels == null || sels.size() < index+1) {
- throw new RuntimeException("Did not find select with name [" + selectName
- + "] at index " + index);
+
+ // we can't find it anywhere
+ throw new RuntimeException("No text field with name [" + paramName
+ + "] was found.");
+ }
+
+ /**
+ * Set a form hidden element to the provided value.
+ *
+ * @param fieldName name of the hidden input element
+ * @param paramValue parameter value to submit for the element.
+ */
+ public void setHiddenField(String fieldName, String text) {
+ // first try the current form
+ if (form != null) {
+ for (HtmlElement e : form.getHtmlElementDescendants()) {
+ if (e instanceof HtmlHiddenInput && e.getAttribute("name").equals(fieldName)) {
+ // we found it
+ ((HtmlHiddenInput) e).setValueAttribute(text);
+ return;
}
- HtmlSelect sel = (HtmlSelect)sels.get(index);
- return getSelectOptionValueForLabel(sel, label);
+ }
}
- private String getSelectOptionLabelForValue(HtmlSelect sel, String value) {
- for (HtmlOption opt : sel.getOptions()) {
- if (opt.getValueAttribute().equals(value)) {
- return opt.asText();
- }
- }
- throw new RuntimeException("Unable to find option " + value + " for "
- + sel.getNameAttribute());
+ // not in the current form: try *all* elements
+ HtmlElement outside_element = getHtmlElementWithAttribute("name", fieldName);
+ if (outside_element != null) {
+ if (outside_element instanceof HtmlHiddenInput) {
+ ((HtmlHiddenInput) outside_element).setValueAttribute(text);
+ // set current form if not null
+ if (outside_element.getEnclosingForm() != null)
+ form = outside_element.getEnclosingForm();
+ return;
+ }
}
-
- public String getSelectOptionLabelForValue(String selectName, String value) {
- HtmlSelect sel = getForm().getSelectByName(selectName);
- return getSelectOptionLabelForValue(sel, value);
+
+ // we can't find it anywhere
+ throw new RuntimeException("No hidden field with name [" + fieldName
+ + "] was found.");
+ }
+
+ /**
+ * Return a string array of select box option values.
+ *
+ * @param selectName name of the select box.
+ */
+ public String[] getSelectOptionValues(String selectName) {
+ HtmlSelect sel = getForm().getSelectByName(selectName);
+ ArrayList<String> result = new ArrayList<String>();
+ for (HtmlOption opt : sel.getOptions()) {
+ result.add(opt.getValueAttribute());
}
-
- public String getSelectOptionLabelForValue(String selectName, int index, String value) {
- List<HtmlSelect> sels = getForm().getSelectsByName(selectName);
- if ( sels == null || sels.size() < index+1) {
- throw new RuntimeException("Did not find select with name [" + selectName
- + "] at index " + index);
- }
- HtmlSelect sel = (HtmlSelect)sels.get(index);
- return getSelectOptionLabelForValue(sel, value);
- }
+ return result.toArray(new String[result.size()]);
+ }
-
-
- public URL getPageURL() {
- return win.getEnclosedPage().getWebResponse().getWebRequest().getUrl();
+ /**
+ * Return a string array of the Nth select box option values.
+ *
+ * @param selectName name of the select box.
+ * @param index the 0-based index when more than one
+ * select with the same name is expected.
+ */
+ public String[] getSelectOptionValues(String selectName, int index) {
+ List<HtmlSelect> sels = getForm().getSelectsByName(selectName);
+ if (sels == null || sels.size() < index + 1) {
+ throw new RuntimeException("Did not find select with name [" + selectName
+ + "] at index " + index);
}
-
- public String getPageSource() {
- return win.getEnclosedPage().getWebResponse()
- .getContentAsString();
+ HtmlSelect sel = sels.get(index);
+ ArrayList<String> result = new ArrayList<String>();
+ for (HtmlOption opt : sel.getOptions()) {
+ result.add(opt.getValueAttribute());
}
+ return (String[]) result.toArray(new String[result.size()]);
+ }
- public String getPageTitle() {
- return getCurrentPageTitle();
+ private String[] getSelectedOptions(HtmlSelect sel) {
+ String[] result = new String[sel.getSelectedOptions().size()];
+ int i = 0;
+ for (HtmlOption opt : sel.getSelectedOptions()) {
+ result[i++] = opt.getValueAttribute();
}
+ return result;
+ }
- public String getPageText() {
- Page page = win.getEnclosedPage();
- if (page instanceof HtmlPage) {
- return ((HtmlPage) page).getBody().asText();
- }
- if (page instanceof TextPage) {
- return ((TextPage) page).getContent();
- }
- if (page instanceof JavaScriptPage) {
- return ((JavaScriptPage) page).getContent();
- }
- if (page instanceof XmlPage) {
- return ((XmlPage) page).getContent();
- }
- if (page instanceof UnexpectedPage) {
- return ((UnexpectedPage) page).getWebResponse()
- .getContentAsString();
- }
- throw new RuntimeException(
- "Unexpected error in getPageText(). This method need to be updated.");
- }
+ public String[] getSelectedOptions(String selectName) {
+ HtmlSelect sel = getForm().getSelectByName(selectName);
+ return getSelectedOptions(sel);
+ }
- public String getServerResponse() {
- StringBuf...
[truncated message content] |
|
From: SourceForge.net <no...@so...> - 2012-10-21 10:49:03
|
Bugs item #3578888, was opened at 2012-10-21 03:49 Message generated for change (Tracker Item Submitted) made by imaixner You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3578888&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HtmlUnit plugin Group: Release 3.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Ivo Maixner (imaixner) Assigned to: Nobody/Anonymous (nobody) Summary: submit() method does not find button tags Initial Comment: Using version 3.0. I have a form with <button type="submit">Label</button>. The submit() method throws exception "No submit button found in current form." I expect the bug is on line 1516 in net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl: Object[] inpt = getForm().getHtmlElementsByTagName("input").toArray(); It only looks up <input> elements. On line 1527, however, it tries to check if it is <button> element, but I can never be, since it was not looked up in the first place. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3578888&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-09-26 11:49:21
|
Bugs item #3571893, was opened at 2012-09-26 04:45 Message generated for change (Settings changed) made by manojsrg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3571893&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Manoj (manojsrg) Assigned to: Nobody/Anonymous (nobody) >Summary: Javascript event not triggered Initial Comment: Javascript events like onkeyup, onkeypress, onmousedown..., are not being triggered on setting value to a textbox using setTextField(). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3571893&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-09-26 11:45:08
|
Bugs item #3571893, was opened at 2012-09-26 04:45 Message generated for change (Tracker Item Submitted) made by manojsrg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3571893&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Manoj (manojsrg) Assigned to: Nobody/Anonymous (nobody) Summary: Javascript event triggering Initial Comment: Javascript events like onkeyup, onkeypress, onmousedown..., are not being triggered on setting value to a textbox using setTextField(). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3571893&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-09-21 08:54:45
|
Bugs item #3570132, was opened at 2012-09-20 08:21 Message generated for change (Comment added) made by henryju You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sebastian (sebastian2303) Assigned to: Julien HENRY (henryju) Summary: assertLinkPresentWithText() didot find the link Initial Comment: I tried to click a link which is present on the page response, but Jwebunit did not find the link. Tried other options (assertLinkPresentWithExactText()), did not work. This is the HTML source captured using getPageSource(). =================================================================================================================== <div class="ft"> <p> <a href="DacView.do" rel="action" target="_self" title="Click here to deactivate your online account">Deactivate Online Account</a> </p> </div> =================================================================================================================== Here are the couple of lines of Jwebunit code. assertLinkPresentWithText(submit.getName()); clickLinkWithText(submit.getName()); ---------------------------------------------------------------------- >Comment By: Julien HENRY (henryju) Date: 2012-09-21 01:54 Message: Hi, Do you know if the HTML fragment containing your link is added dynamically to the page (using AJAX)? What is the version of JWebUnit you are using? Can you try with something like: clickElementByXPath("//a[@href='DacView.do']"); ---------------------------------------------------------------------- Comment By: Sebastian (sebastian2303) Date: 2012-09-20 08:25 Message: Please ignore the JwebUnit code above. Here are the couple of lines of Jwebunit code. assertLinkPresentWithText("Deactivate Online Account"); clickLinkWithText("Deactivate Online Account")); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-09-20 15:25:55
|
Bugs item #3570132, was opened at 2012-09-20 08:21 Message generated for change (Settings changed) made by sebastian2303 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sebastian (sebastian2303) >Assigned to: Julien HENRY (henryju) Summary: assertLinkPresentWithText() didot find the link Initial Comment: I tried to click a link which is present on the page response, but Jwebunit did not find the link. Tried other options (assertLinkPresentWithExactText()), did not work. This is the HTML source captured using getPageSource(). =================================================================================================================== <div class="ft"> <p> <a href="DacView.do" rel="action" target="_self" title="Click here to deactivate your online account">Deactivate Online Account</a> </p> </div> =================================================================================================================== Here are the couple of lines of Jwebunit code. assertLinkPresentWithText(submit.getName()); clickLinkWithText(submit.getName()); ---------------------------------------------------------------------- Comment By: Sebastian (sebastian2303) Date: 2012-09-20 08:25 Message: Please ignore the JwebUnit code above. Here are the couple of lines of Jwebunit code. assertLinkPresentWithText("Deactivate Online Account"); clickLinkWithText("Deactivate Online Account")); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-09-20 15:25:09
|
Bugs item #3570132, was opened at 2012-09-20 08:21 Message generated for change (Comment added) made by sebastian2303 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sebastian (sebastian2303) Assigned to: Nobody/Anonymous (nobody) >Summary: assertLinkPresentWithText() didot find the link Initial Comment: I tried to click a link which is present on the page response, but Jwebunit did not find the link. Tried other options (assertLinkPresentWithExactText()), did not work. This is the HTML source captured using getPageSource(). =================================================================================================================== <div class="ft"> <p> <a href="DacView.do" rel="action" target="_self" title="Click here to deactivate your online account">Deactivate Online Account</a> </p> </div> =================================================================================================================== Here are the couple of lines of Jwebunit code. assertLinkPresentWithText(submit.getName()); clickLinkWithText(submit.getName()); ---------------------------------------------------------------------- >Comment By: Sebastian (sebastian2303) Date: 2012-09-20 08:25 Message: Please ignore the JwebUnit code above. Here are the couple of lines of Jwebunit code. assertLinkPresentWithText("Deactivate Online Account"); clickLinkWithText("Deactivate Online Account")); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-09-20 15:21:59
|
Bugs item #3570132, was opened at 2012-09-20 08:21 Message generated for change (Tracker Item Submitted) made by sebastian2303 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sebastian (sebastian2303) Assigned to: Nobody/Anonymous (nobody) Summary: assertLinkPresentWithText() didnot find the link Initial Comment: I tried to click a link which is present on the page response, but Jwebunit did not find the link. Tried other options (assertLinkPresentWithExactText()), did not work. This is the HTML source captured using getPageSource(). =================================================================================================================== <div class="ft"> <p> <a href="DacView.do" rel="action" target="_self" title="Click here to deactivate your online account">Deactivate Online Account</a> </p> </div> =================================================================================================================== Here are the couple of lines of Jwebunit code. assertLinkPresentWithText(submit.getName()); clickLinkWithText(submit.getName()); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3570132&group_id=61302 |
|
From: <jev...@us...> - 2012-09-13 00:28:51
|
Revision: 956
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=956&view=rev
Author: jevonwright
Date: 2012-09-13 00:28:45 +0000 (Thu, 13 Sep 2012)
Log Message:
-----------
improving IElement Javadoc documentation
Modified Paths:
--------------
trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/IElement.java
Modified: trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/IElement.java
===================================================================
--- trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/IElement.java 2012-08-16 19:53:36 UTC (rev 955)
+++ trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/api/IElement.java 2012-09-13 00:28:45 UTC (rev 956)
@@ -53,9 +53,9 @@
public String getTextContent();
/**
- * Get the parent element, or null if none exists.
+ * Get the parent element, or {@code null} if none exists.
*
- * @return The parent element or null
+ * @return The parent element or {@code null}
*/
public IElement getParent();
@@ -83,24 +83,28 @@
public List<IElement> getElements(String xpath);
/**
- * Set an attribute on this element.
+ * Set an attribute on this element, e.g. "checked" for HTML4 <select>s.
*
- * @param string
+ * @param string the attribute name
*/
public void setAttribute(String name);
/**
* Set an attribute on this element.
*
- * @param string
- * @param value
+ * @param string the attribute name
+ * @param value the new attribute value
*/
public void setAttribute(String name, String value);
/**
* Set the text content on this element.
+ * Note that if you are trying to set the value of an <input> input, you should use
+ * {@code setAttribute("value")} instead.
+ * This also sets the text content of a <textarea> element.
*
- * @param value
+ * @param value the new inner text content of this element
+ * @see #setAttribute(String, String)
*/
public void setTextContent(String value);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: Julien H. <he...@ya...> - 2012-09-09 16:01:24
|
Hi, If someone is interested to join this conference and represent JWebUnit, feel free to contact Dion Johnson. Regards, Julien ----- Mail transféré ----- >De : Dion Johnson <dio...@au...> >À : he...@ya... >Envoyé le : Dimanche 9 septembre 2012 16h45 >Objet : JWebUnit named Finalist In ATI Automation Honors > > >Julien, >I'm writing to let you know that JWebUnit has been named a finalist in the 4th Annual ATI Automation Honors. The ATI Automation Honors is the industry's original set of awards dedicated to software test automation and it recognizes tools, resources and practitioners that demonstrate excellence. We encourage you to share this information with your community and ask them to show support for you by coming to the ATI Online reference (http://www.atihonors.automatedtestinginstitute.com) and voting for you. Voting will take place from now through October 7. > >We'd love to have you guys represented at the TestKIT 2012 Conference where the award winners will be announced during a live ceremony that will also be recorded and shared with our online community. Attendance would be a great way to increase your profile within the automated testing community. We're willing to offer a representative of your organization complimentary attendance to the spectacular 3-day event held in Linthicum, MD from Oct 15 through the 17. For more information on the conference visit http://www.testkitconference.com. > >Please respond to this email indicating whether or not any of your representatives will be able to attend. > >Thanks and congratulations! >Dion Johnson >Automated Testing Institute >"The KIT is Koming" >www.testkitconference.com > > |
|
From: SourceForge.net <no...@so...> - 2012-08-28 07:02:44
|
Feature Requests item #3561726, was opened at 2012-08-25 10:25 Message generated for change (Comment added) made by henryju You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3561726&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Release 3.1 Status: Open Priority: 5 Private: No Submitted By: Fran Tonello (ftonello) Assigned to: Julien HENRY (henryju) Summary: Need Servlet API v3 support Initial Comment: Currently, JWebUnit depends on v2.5 of the Java servlet-api. With many sites switching to Tomcat 7 (which supports and *provides* Servlet V3), JWU's dependency on the old servlet-api causes both versions to be added to the class path, which causes class conflicts which break the app and tests. Explicitly excluding JWU's dependency on v2.5 in a client POM breaks JWU. What we really need is a new version of JWebUnit built with the new Servlet API release. I propose changing the servlet API dependency in JWebUnit's POM to this: <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> </dependency> (BTW, note that the artifactId has changed.) Thanks!!! ---------------------------------------------------------------------- >Comment By: Julien HENRY (henryju) Date: 2012-08-28 00:02 Message: Thanks for the feedback. I'll keep the issue open in order to remind to investigate for the complete removal of servlet-api dependency. ---------------------------------------------------------------------- Comment By: Fran Tonello (ftonello) Date: 2012-08-27 16:37 Message: I've found a workaround, and lowing the priority of this issue. If you leave the old 'provided' dependency on Servlet v2.5 in your POM, JWebUnit will work, and there aren't any class conflicts: <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> ---------------------------------------------------------------------- Comment By: Fran Tonello (ftonello) Date: 2012-08-27 10:34 Message: Thanks for your quick response, Julien! I like how you think; I dared not hope that the dependency could be eliminated entirely. My company wants us to upgrade to Tomcat 7, since it's been out for over a year and a half. The upgrade to Servlet v3 was trivial - nothing needed to change in our apps, only our JWU integration tests are giving us trouble. So at least the upgrade is probably easy if the dependency can't be eliminated. The trouble is all those existing clients. There'd prolly have to be a new JWU artifact... ---------------------------------------------------------------------- Comment By: Julien HENRY (henryju) Date: 2012-08-27 06:53 Message: I'm not sure everybody is ready to update so servlet-api 3.0. It would be better to remove this dependency. This is something I wanted to to for a long time, but I'm not sure it will be easy. I will check asap. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3561726&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-08-27 23:37:51
|
Feature Requests item #3561726, was opened at 2012-08-25 10:25 Message generated for change (Comment added) made by ftonello You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3561726&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Release 3.1 Status: Open >Priority: 5 >Private: No Submitted By: Fran Tonello (ftonello) Assigned to: Julien HENRY (henryju) Summary: Need Servlet API v3 support Initial Comment: Currently, JWebUnit depends on v2.5 of the Java servlet-api. With many sites switching to Tomcat 7 (which supports and *provides* Servlet V3), JWU's dependency on the old servlet-api causes both versions to be added to the class path, which causes class conflicts which break the app and tests. Explicitly excluding JWU's dependency on v2.5 in a client POM breaks JWU. What we really need is a new version of JWebUnit built with the new Servlet API release. I propose changing the servlet API dependency in JWebUnit's POM to this: <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> </dependency> (BTW, note that the artifactId has changed.) Thanks!!! ---------------------------------------------------------------------- >Comment By: Fran Tonello (ftonello) Date: 2012-08-27 16:37 Message: I've found a workaround, and lowing the priority of this issue. If you leave the old 'provided' dependency on Servlet v2.5 in your POM, JWebUnit will work, and there aren't any class conflicts: <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> ---------------------------------------------------------------------- Comment By: Fran Tonello (ftonello) Date: 2012-08-27 10:34 Message: Thanks for your quick response, Julien! I like how you think; I dared not hope that the dependency could be eliminated entirely. My company wants us to upgrade to Tomcat 7, since it's been out for over a year and a half. The upgrade to Servlet v3 was trivial - nothing needed to change in our apps, only our JWU integration tests are giving us trouble. So at least the upgrade is probably easy if the dependency can't be eliminated. The trouble is all those existing clients. There'd prolly have to be a new JWU artifact... ---------------------------------------------------------------------- Comment By: Julien HENRY (henryju) Date: 2012-08-27 06:53 Message: I'm not sure everybody is ready to update so servlet-api 3.0. It would be better to remove this dependency. This is something I wanted to to for a long time, but I'm not sure it will be easy. I will check asap. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3561726&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-08-27 17:34:35
|
Feature Requests item #3561726, was opened at 2012-08-25 10:25 Message generated for change (Comment added) made by ftonello You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3561726&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Release 3.1 Status: Open Priority: 8 >Private: Yes Submitted By: Fran Tonello (ftonello) Assigned to: Julien HENRY (henryju) Summary: Need Servlet API v3 support Initial Comment: Currently, JWebUnit depends on v2.5 of the Java servlet-api. With many sites switching to Tomcat 7 (which supports and *provides* Servlet V3), JWU's dependency on the old servlet-api causes both versions to be added to the class path, which causes class conflicts which break the app and tests. Explicitly excluding JWU's dependency on v2.5 in a client POM breaks JWU. What we really need is a new version of JWebUnit built with the new Servlet API release. I propose changing the servlet API dependency in JWebUnit's POM to this: <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> </dependency> (BTW, note that the artifactId has changed.) Thanks!!! ---------------------------------------------------------------------- >Comment By: Fran Tonello (ftonello) Date: 2012-08-27 10:34 Message: Thanks for your quick response, Julien! I like how you think; I dared not hope that the dependency could be eliminated entirely. My company wants us to upgrade to Tomcat 7, since it's been out for over a year and a half. The upgrade to Servlet v3 was trivial - nothing needed to change in our apps, only our JWU integration tests are giving us trouble. So at least the upgrade is probably easy if the dependency can't be eliminated. The trouble is all those existing clients. There'd prolly have to be a new JWU artifact... ---------------------------------------------------------------------- Comment By: Julien HENRY (henryju) Date: 2012-08-27 06:53 Message: I'm not sure everybody is ready to update so servlet-api 3.0. It would be better to remove this dependency. This is something I wanted to to for a long time, but I'm not sure it will be easy. I will check asap. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3561726&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-08-27 13:53:54
|
Feature Requests item #3561726, was opened at 2012-08-25 10:25 Message generated for change (Comment added) made by henryju You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3561726&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: None >Group: Release 3.1 Status: Open Priority: 8 Private: No Submitted By: Fran Tonello (ftonello) Assigned to: Julien HENRY (henryju) Summary: Need Servlet API v3 support Initial Comment: Currently, JWebUnit depends on v2.5 of the Java servlet-api. With many sites switching to Tomcat 7 (which supports and *provides* Servlet V3), JWU's dependency on the old servlet-api causes both versions to be added to the class path, which causes class conflicts which break the app and tests. Explicitly excluding JWU's dependency on v2.5 in a client POM breaks JWU. What we really need is a new version of JWebUnit built with the new Servlet API release. I propose changing the servlet API dependency in JWebUnit's POM to this: <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> </dependency> (BTW, note that the artifactId has changed.) Thanks!!! ---------------------------------------------------------------------- >Comment By: Julien HENRY (henryju) Date: 2012-08-27 06:53 Message: I'm not sure everybody is ready to update so servlet-api 3.0. It would be better to remove this dependency. This is something I wanted to to for a long time, but I'm not sure it will be easy. I will check asap. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3561726&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-08-25 17:26:05
|
Bugs item #3561726, was opened at 2012-08-25 10:25 Message generated for change (Settings changed) made by ftonello You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3561726&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Maven Group: None Status: Open Resolution: None >Priority: 8 Private: No Submitted By: Fran Tonello (ftonello) Assigned to: Julien HENRY (henryju) Summary: Need Servlet API v3 support Initial Comment: Currently, JWebUnit depends on v2.5 of the Java servlet-api. With many sites switching to Tomcat 7 (which supports and *provides* Servlet V3), JWU's dependency on the old servlet-api causes both versions to be added to the class path, which causes class conflicts which break the app and tests. Explicitly excluding JWU's dependency on v2.5 in a client POM breaks JWU. What we really need is a new version of JWebUnit built with the new Servlet API release. I propose changing the servlet API dependency in JWebUnit's POM to this: <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> </dependency> (BTW, note that the artifactId has changed.) Thanks!!! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3561726&group_id=61302 |
|
From: SourceForge.net <no...@so...> - 2012-08-25 17:25:02
|
Bugs item #3561726, was opened at 2012-08-25 10:25 Message generated for change (Tracker Item Submitted) made by ftonello You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3561726&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Maven Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Fran Tonello (ftonello) Assigned to: Julien HENRY (henryju) Summary: Need Servlet API v3 support Initial Comment: Currently, JWebUnit depends on v2.5 of the Java servlet-api. With many sites switching to Tomcat 7 (which supports and *provides* Servlet V3), JWU's dependency on the old servlet-api causes both versions to be added to the class path, which causes class conflicts which break the app and tests. Explicitly excluding JWU's dependency on v2.5 in a client POM breaks JWU. What we really need is a new version of JWebUnit built with the new Servlet API release. I propose changing the servlet API dependency in JWebUnit's POM to this: <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> </dependency> (BTW, note that the artifactId has changed.) Thanks!!! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3561726&group_id=61302 |
|
From: <he...@us...> - 2012-08-16 19:53:42
|
Revision: 955
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=955&view=rev
Author: henryju
Date: 2012-08-16 19:53:36 +0000 (Thu, 16 Aug 2012)
Log Message:
-----------
Updated architecture diagram.
Modified Paths:
--------------
trunk/src/site/resources/images/jwebunit-architecture.odg
trunk/src/site/resources/images/jwebunit-architecture.png
Modified: trunk/src/site/resources/images/jwebunit-architecture.odg
===================================================================
(Binary files differ)
Modified: trunk/src/site/resources/images/jwebunit-architecture.png
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: SourceForge.net <no...@so...> - 2012-08-16 19:45:13
|
Feature Requests item #3476459, was opened at 2012-01-19 20:04 Message generated for change (Comment added) made by henryju You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3476459&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation >Group: Release 3.1 >Status: Closed Priority: 7 Private: No Submitted By: Jevon Wright (jevonwright) >Assigned to: Julien HENRY (henryju) Summary: Provide sample logback.xml in quick start guide Initial Comment: By default, if you extract JWebUnit into a new project with no existing logger configuration, JWebUnit now uses the logback logging framework. However the quick start documentation says nothing about this framework, or how to configure it. By default, ALL debug messages -- including debugging at the level of the sockets in HttpClient -- will be printed when executing a test. At the very least, the quick start guide should include a sample logback.xml file such as the one I discuss on StackOverflow: http://stackoverflow.com/questions/4915414/disable-httpclient-logging/8936580#8936580 That is: <configuration debug="false"> <!-- definition of appender STDOUT --> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern> </encoder> </appender> <root level="ERROR"> <!-- appender referenced after it is defined --> <appender-ref ref="STDOUT"/> </root> </configuration> ---------------------------------------------------------------------- >Comment By: Julien HENRY (henryju) Date: 2012-08-16 12:45 Message: Logback no more included transitively and documentation updated on how to use it if needed. ---------------------------------------------------------------------- Comment By: Jevon Wright (jevonwright) Date: 2012-01-24 15:32 Message: I don't mind either option, it just needs to be well documented :-) If JWebUnit includes HtmlUnit, then it should also include some logging framework (if a logging framework is necessary) and documentation on how to confiugre it (if necessary). Perhaps you can keep it an optional dependency for people who use Maven/POM, but for users who download the JWebUnit JARs directly, include logback & a sample logback.xml in those JARs. Alternatively, include log4j and sample log4j.properties. ---------------------------------------------------------------------- Comment By: Julien HENRY (henryju) Date: 2012-01-20 01:15 Message: Just checked and you are right, logback is in the dependency list. Seems that the optional flag is not working with dependency management... http://jira.codehaus.org/browse/MNG-4600 My purpose was to let users choose the logging framework they want. I see two options: A - don't provide any slf4j implementation by default. Mean users are forced to add another dependency in their poms (it was my first intention) B - continue to provide logback by default. Users that don't want logback can add an exclusion (it is the current situation) WDYT? ---------------------------------------------------------------------- Comment By: Julien HENRY (henryju) Date: 2012-01-20 01:07 Message: JWebUnit should not use logback but slf4j. Logback is an optional dependency that should not be taken transitively and is used for our unit tests. It is up to the end user to choose an slf4j implementation (logback, slf4j-log4j12, slf4j-jcl, ...) and provide the configuration. But you are right that it should be documented. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=3476459&group_id=61302 |
|
From: Julien H. <he...@ya...> - 2012-08-16 19:43:02
|
Just tested and you were right. Logback is taken transitively. It seems the optional=true is not taken into account (maybe because it is in dependency management). I have commited a fix and updated documentation. Feel free to give me some feedback. Regards, Julien ----- Mail original ----- > De : jevon <je...@je...> > À : Julien HENRY <he...@ya...>; JWebUnit Development mail list <jwe...@li...> > Cc : > Envoyé le : Jeudi 16 août 2012 15h05 > Objet : Re: [JWebUnit-development] Adding sample logback.xml to JWebUnit homepage > > Hi Julien, > > Thanks for your reply :D I might have more time to work on JWebUnit > over the next few weeks, if anything needs doing. Today I looked at > implementing JSON POST (for RESTful APIs) but it's probably not > suitable for inclusion within JWebUnit. > > I didn't try slf4j, only log4j (whose configuration didn't do > anything). I've stumbled upon this twice, from importing the most > recent JWebUnit directly into a fresh project that doesn't use any > logging frameworks or Maven (and if you are using the jars directly, > it's probably unlikely you're using Maven). If you prefer slf4j, can > we provide a sample configuration as well? Perhaps the release build > should include a specific logger. > > This is only to get people up-and-running quickly, I think we should > write a section on logging and how multiple are supported. The amount > of noise generated without one makes it difficult to debug. My > preference is for a sample configuration (copy/paste) for each of the > supported loggers. > > Jevon > > On Thu, Aug 16, 2012 at 8:22 PM, Julien HENRY <he...@ya...> wrote: >> Hi Jevon, >> >> My intention was to only rely on slf4j for logging. I don't want to > force users to use logback (even if it is my preferred choice today). I > haven't checked recently but if you are using Maven you should only get > slf4j-api in your classpath and no implementation (logback is set to be > optional=true so no transitive inclusion). >> People are free to use any logging framework compatible with slf4j. >> >> Anyway you are right that we should provide in the quickstart a sample of > logging configuration. Here using logback is fine, as long as we are clear it is > only a possibility, not mandatory. >> >> As far as I know apache-httpclient is using commons-logging to log, not > logback. In order to avoid commons-logging, the dependency is excluded (see > [1]), and jcl-over-slf4j is added to the classpath. It means that every logs are > redirected to slf4j. >> >> So basically in the quickstart I would better say something like : >> >> =Configuring logging= >> >> >> JWebUnit use slf4j to log (link to slf4j website). You can use any > implementation you like. For example you can use logback (link to logback > website). Here is how to configure logback : >> 1) If you are using Maven you must add a dependency on logback >> <dependency> > <groupId>ch.qos.logback</groupId> > <artifactId>logback-classic</artifactId> > <version>1.0.6</version> <scope>runtime</scope> > </dependency> >> 2) You must provide a logback.xml configuration file in your classpath > (example + link to logback documentation)... >> >> >> Regards, >> >> Julien >> >> >> >> [1] > http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/trunk/jwebunit-htmlunit-plugin/pom.xml?revision=952&content-type=text%2Fplain >> >> >>> ________________________________ >>> De : jevon <je...@je...> >>> À : JWebUnit Development mail list > <jwe...@li...> >>> Envoyé le : Jeudi 16 août 2012 3h27 >>> Objet : [JWebUnit-development] Adding sample logback.xml to JWebUnit > homepage >>> >>> Hi, >>> >>> In r951, I've added some brief instructions on how to get the > logback >>> logger to be quiet - by default, if no logback.xml is present, then >>> ALL logging information (including on-wire transmissions themselves) >>> will be dumped onto stdout. I've hit this problem twice now so I > think >>> it's probably a good idea to include it in the quick how-to guide. >>> >>> See also: http://stackoverflow.com/a/8936580/39531 >>> >>> Thoughts? I haven't pushed the changes onto the SF homepage yet > (I'm >>> not sure if I have the permissions anyway). >>> >>> Jevon >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. > Discussions >>> will include endpoint security, mobile security and the latest in > malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> JWebUnit-development mailing list >>> JWe...@li... >>> https://lists.sourceforge.net/lists/listinfo/jwebunit-development >>> >>> >>> >> >> > ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> JWebUnit-development mailing list >> JWe...@li... >> https://lists.sourceforge.net/lists/listinfo/jwebunit-development > |
|
From: <he...@us...> - 2012-08-16 19:41:59
|
Revision: 954
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=954&view=rev
Author: henryju
Date: 2012-08-16 19:41:52 +0000 (Thu, 16 Aug 2012)
Log Message:
-----------
[3476459] Do not include logback transitively and provide documentation on how to use it.
Modified Paths:
--------------
trunk/jwebunit-htmlunit-plugin/pom.xml
trunk/jwebunit-webdriver-plugin/pom.xml
trunk/src/changes/changes.xml
trunk/src/site/site.xml
trunk/src/site/xdoc/quickstart.xml
Modified: trunk/jwebunit-htmlunit-plugin/pom.xml
===================================================================
--- trunk/jwebunit-htmlunit-plugin/pom.xml 2012-08-16 19:40:21 UTC (rev 953)
+++ trunk/jwebunit-htmlunit-plugin/pom.xml 2012-08-16 19:41:52 UTC (rev 954)
@@ -53,6 +53,7 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
Modified: trunk/jwebunit-webdriver-plugin/pom.xml
===================================================================
--- trunk/jwebunit-webdriver-plugin/pom.xml 2012-08-16 19:40:21 UTC (rev 953)
+++ trunk/jwebunit-webdriver-plugin/pom.xml 2012-08-16 19:41:52 UTC (rev 954)
@@ -61,6 +61,7 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
Modified: trunk/src/changes/changes.xml
===================================================================
--- trunk/src/changes/changes.xml 2012-08-16 19:40:21 UTC (rev 953)
+++ trunk/src/changes/changes.xml 2012-08-16 19:41:52 UTC (rev 954)
@@ -31,6 +31,10 @@
</properties>
<body>
<release version="3.1" date="UNKNOW" description="Cleanup for Webdriver integration">
+ <action type="update" dev="henryju" issue="3476459" due-to="Jevon Wright">
+ Updated dependencies to not provide logback transitively. Added a section in documentation
+ to explain how to use logback.
+ </action>
<action type="update" dev="henryju">
Updated to HtmlUnit 2.10.
</action>
Modified: trunk/src/site/site.xml
===================================================================
--- trunk/src/site/site.xml 2012-08-16 19:40:21 UTC (rev 953)
+++ trunk/src/site/site.xml 2012-08-16 19:41:52 UTC (rev 954)
@@ -54,8 +54,12 @@
<item name="Installation" href="installation.html" />
<item name="Quick start" href="quickstart.html"
collapse="true">
- <item name="Creating a TestCase"
- href="#Creating_a_TestCase" />
+ <item name="JUnit 4"
+ href="#Creating_a_JUnit_4_TestCase" />
+ <item name="JUnit 3 (deprecated)"
+ href="#Creating_a_JUnit_3_TestCase_deprecated" />
+ <item name="Configuring logging"
+ href="#Configuring_logging" />
<item name="Selecting a plugin"
href="#Selecting_the_plugin_you_want_to_use" />
<item name="Site Navigation"
Modified: trunk/src/site/xdoc/quickstart.xml
===================================================================
--- trunk/src/site/xdoc/quickstart.xml 2012-08-16 19:40:21 UTC (rev 953)
+++ trunk/src/site/xdoc/quickstart.xml 2012-08-16 19:41:52 UTC (rev 954)
@@ -35,13 +35,13 @@
<p>
JWebUnit uses two approaches for creating JUnit 4 test cases: static import and delegation. The simplest is
to statically import all methods of net.sourceforge.jwebunit.junit.JWebUnit.
-
- <source>
+</p>
+<source>
import static net.sourceforge.jwebunit.junit.JWebUnit.*;
public class ExampleWebTestCase {
- @Before
+ @Before
public void prepare() {
setBaseUrl("http://localhost:8080/test");
}
@@ -56,12 +56,12 @@
submit();
assertTitleEquals("Welcome, test!");
}
-}
- </source>
+}</source>
+<p>
An alternative is to include an instance of the WebTester class in your TestCase and delegate navigation
and assertions to it. This is provided in case you need or prefer delegation.
-
- <source>
+</p>
+<source>
import net.sourceforge.jwebunit.junit.WebTester;
public class ExampleWebTestCase {
@@ -83,8 +83,8 @@
tester.submit();
tester.assertTitleEquals("Welcome, test!");
}
-}
- </source>
+}</source>
+<p>
In the following samples, JUnit 4 and static import will be used.
</p>
</subsection>
@@ -93,8 +93,8 @@
<p>
JWebUnit uses two approaches for creating JUnit 3 test cases: inheritance and delegation. The simplest is
to inherit from WebTestCase rather than junit.framework.TestCase.
-
- <source>
+</p>
+<source>
import net.sourceforge.jwebunit.junit.WebTestCase;
public class ExampleWebTestCase extends WebTestCase {
@@ -113,13 +113,14 @@
submit();
assertTitleEquals("Welcome, test!");
}
-}
- </source>
+}</source>
+<p>
An alternative is to include an instance of the WebTester class in your TestCase and delegate navigation
- and assertions to it. This is provided in case you need or prefer delegation.
+ and assertions to it. This is provided in case you need or prefer delegation.<br/>
<b>WARNING: WebTester was migrated to JUnit 4. As a result all assertXX will throw java.lang.AssertionError
instead of old junit.framework.AssertionFailedError.</b>
- <source>
+</p>
+<source>
import junit.framework.TestCase;
import net.sourceforge.jwebunit.junit.WebTester;
@@ -141,37 +142,59 @@
tester.submit();
tester.assertTitleEquals("Welcome, test!");
}
-}
- </source>
-</p>
+}</source>
+
</subsection>
-<subsection name="Configuring Logback">
+<subsection name="Configuring logging">
<p>
- <a href="http://hc.apache.org/">Apache Commons' HTTP Components project</a>, one of the dependencies of JWebUnit, uses the <a href="http://logback.qos.ch/">logback logging framework</a> extensively.
- This means that if you do not have logback correctly configured, you will get <a href="http://stackoverflow.com/questions/4915414/disable-httpclient-logging">a lot of debug information</a> piped to stdout.
+ JWebUnit use <a href="http://www.slf4j.org/">SLF4J</a> to log. SLF4J is only a facade so with the default
+ Maven configuration you will only get slf4j-api in your classpath with no implementation. If you run your tests
+ you will see a message like this:
</p>
+<source>
+SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
+SLF4J: Defaulting to no-operation (NOP) logger implementation
+SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.</source>
+<p>
+ but no log at all.
+</p>
+<p>
+ Many popular logging framework do support SLF4J: log4j, jcl, logback, ... For example here are the steps to
+ configure <a href="http://logback.qos.ch/">logback logging framework</a>:<br/>
+ <br/>
+ First you should add logback JAR to your classpath. If you are using Maven, simply add:
+</p>
+<source><![CDATA[
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ <version>1.0.6</version>
+ <scope>test</scope>
+ </dependency>]]></source>
<p>
- A simple way to configure logback is to create a file called <i>logback.xml</i> with the following contents, and placing it in your source folder (for example, <i>src</i>).
- This will suppress all debugging messages unless they are at the ERROR level or higher.
+ Now if you run your tests everything will be logged to console. Some components are very verbose so here is a sample logback configuration
+ to reduce verbosity. Just create a file called logback-test.xml in your classpath (<tt>src/test/resources</tt> is a good place if you are following
+ Maven conventions). This will suppress all debugging messages unless they are at the ERROR level or higher.
</p>
+<source><![CDATA[
+<configuration debug="false">
+ <!-- definition of appender STDOUT -->
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern>
+ </encoder>
+ </appender>
-<source>
-<configuration debug="false">
- <!-- definition of appender STDOUT -->
- <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
- <encoder>
- <pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern>
- </encoder>
- </appender>
-
- <root level="ERROR">
- <!-- appender referenced after it is defined -->
- <appender-ref ref="STDOUT"/>
- </root>
-</configuration>
-</source>
+ <root level="ERROR">
+ <!-- appender referenced after it is defined -->
+ <appender-ref ref="STDOUT" />
+ </root>
+</configuration>]]></source>
+<p>
+ Please read <a href="http://logback.qos.ch/manual/configuration.html">logback documentation</a> for more details.
+</p>
</subsection>
<subsection name="Selecting the plugin you want to use">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2012-08-16 19:40:27
|
Revision: 953
http://jwebunit.svn.sourceforge.net/jwebunit/?rev=953&view=rev
Author: henryju
Date: 2012-08-16 19:40:21 +0000 (Thu, 16 Aug 2012)
Log Message:
-----------
Fix checkstyle config.
Modified Paths:
--------------
trunk/src/checkstyle/jwebunit-checkstyle.xml
Modified: trunk/src/checkstyle/jwebunit-checkstyle.xml
===================================================================
--- trunk/src/checkstyle/jwebunit-checkstyle.xml 2012-08-16 02:55:26 UTC (rev 952)
+++ trunk/src/checkstyle/jwebunit-checkstyle.xml 2012-08-16 19:40:21 UTC (rev 953)
@@ -36,7 +36,6 @@
</module>
<module name="FileLength" />
<module name="TreeWalker">
- <property name="cacheFile" value="${cacheFile}"/><!-- Needed for MCHECKSTYLE-159 -->
<module name="JavadocMethod" />
<module name="JavadocType" />
<module name="JavadocVariable">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: SourceForge.net <no...@so...> - 2012-08-16 19:34:51
|
Bugs item #2352559, was opened at 2008-11-26 15:18 Message generated for change (Comment added) made by henryju You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=2352559&group_id=61302 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Maven >Group: Release 3.1 >Status: Closed >Resolution: Fixed Priority: 3 Private: No Submitted By: Jevon Wright (jevonwright) >Assigned to: Julien HENRY (henryju) Summary: Clean up Maven warnings in 'mvn site' Initial Comment: Running the site generation tool ($ mvn site) on a clean install throws a bunch of warnings: [WARNING] DEPRECATED [aggregate]: As of version 2.5, use the goals <code>javadoc:aggregate</code> and <code>javadoc:test-aggregate</code> instead. ... [WARNING] The Javadoc plugin parameter 'proxyHost' is deprecated since 2.4. Please configure an active proxy in your settings.xml. [WARNING] The Javadoc plugin parameter 'proxyPort' is deprecated since 2.4. Please configure an active proxy in your settings.xml. ... [WARNING] Error while parsing ...\IElementTest.java: Can't use generics unless running in JDK 1.5 mode! ... [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! ---------------------------------------------------------------------- >Comment By: Julien HENRY (henryju) Date: 2012-08-16 12:34 Message: Seems to be fixed now. ---------------------------------------------------------------------- Comment By: Julien HENRY (henryju) Date: 2008-11-27 00:32 Message: I'm waiting for this bug to be fixed: http://jira.codehaus.org/browse/MJAVADOC-181 before updating Javadoc plugin. I hope this will also fix the generation of the WebTestCase javadoc. Please feel free to vote for the bug. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=2352559&group_id=61302 |
|
From: jevon <je...@je...> - 2012-08-16 13:06:44
|
Hi Julien, Thanks for your reply :D I might have more time to work on JWebUnit over the next few weeks, if anything needs doing. Today I looked at implementing JSON POST (for RESTful APIs) but it's probably not suitable for inclusion within JWebUnit. I didn't try slf4j, only log4j (whose configuration didn't do anything). I've stumbled upon this twice, from importing the most recent JWebUnit directly into a fresh project that doesn't use any logging frameworks or Maven (and if you are using the jars directly, it's probably unlikely you're using Maven). If you prefer slf4j, can we provide a sample configuration as well? Perhaps the release build should include a specific logger. This is only to get people up-and-running quickly, I think we should write a section on logging and how multiple are supported. The amount of noise generated without one makes it difficult to debug. My preference is for a sample configuration (copy/paste) for each of the supported loggers. Jevon On Thu, Aug 16, 2012 at 8:22 PM, Julien HENRY <he...@ya...> wrote: > Hi Jevon, > > My intention was to only rely on slf4j for logging. I don't want to force users to use logback (even if it is my preferred choice today). I haven't checked recently but if you are using Maven you should only get slf4j-api in your classpath and no implementation (logback is set to be optional=true so no transitive inclusion). > People are free to use any logging framework compatible with slf4j. > > Anyway you are right that we should provide in the quickstart a sample of logging configuration. Here using logback is fine, as long as we are clear it is only a possibility, not mandatory. > > As far as I know apache-httpclient is using commons-logging to log, not logback. In order to avoid commons-logging, the dependency is excluded (see [1]), and jcl-over-slf4j is added to the classpath. It means that every logs are redirected to slf4j. > > So basically in the quickstart I would better say something like : > > =Configuring logging= > > > JWebUnit use slf4j to log (link to slf4j website). You can use any implementation you like. For example you can use logback (link to logback website). Here is how to configure logback : > 1) If you are using Maven you must add a dependency on logback > <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.0.6</version> <scope>runtime</scope> </dependency> > 2) You must provide a logback.xml configuration file in your classpath (example + link to logback documentation)... > > > Regards, > > Julien > > > > [1] http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/trunk/jwebunit-htmlunit-plugin/pom.xml?revision=952&content-type=text%2Fplain > > >>________________________________ >> De : jevon <je...@je...> >>À : JWebUnit Development mail list <jwe...@li...> >>Envoyé le : Jeudi 16 août 2012 3h27 >>Objet : [JWebUnit-development] Adding sample logback.xml to JWebUnit homepage >> >>Hi, >> >>In r951, I've added some brief instructions on how to get the logback >>logger to be quiet - by default, if no logback.xml is present, then >>ALL logging information (including on-wire transmissions themselves) >>will be dumped onto stdout. I've hit this problem twice now so I think >>it's probably a good idea to include it in the quick how-to guide. >> >>See also: http://stackoverflow.com/a/8936580/39531 >> >>Thoughts? I haven't pushed the changes onto the SF homepage yet (I'm >>not sure if I have the permissions anyway). >> >>Jevon >> >>------------------------------------------------------------------------------ >>Live Security Virtual Conference >>Exclusive live event will cover all the ways today's security and >>threat landscape has changed and how IT managers can respond. Discussions >>will include endpoint security, mobile security and the latest in malware >>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>_______________________________________________ >>JWebUnit-development mailing list >>JWe...@li... >>https://lists.sourceforge.net/lists/listinfo/jwebunit-development >> >> >> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > JWebUnit-development mailing list > JWe...@li... > https://lists.sourceforge.net/lists/listinfo/jwebunit-development |