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

Commit a7de89c

Browse files
committed
Some minor fix concerning Selenium.
1 parent 4bfbb3a commit a7de89c

3 files changed

Lines changed: 37 additions & 6 deletions

File tree

jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/JettySetup.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public JettySetup(Test test) {
4949
*
5050
* @see junit.extensions.TestSetup#setUp()
5151
*/
52-
public void setUp() {
52+
public void setUp() throws Exception {
53+
super.setUp();
5354
try {
5455
jettyServer = new Server();
5556
SocketConnector connector = new SocketConnector();
@@ -95,7 +96,7 @@ public void setUp() {
9596
*
9697
* @see junit.extensions.TestSetup#tearDown()
9798
*/
98-
public void tearDown() {
99+
public void tearDown() throws Exception {
99100
try {
100101
jettyServer.stop();
101102
} catch (InterruptedException e) {
@@ -105,5 +106,6 @@ public void tearDown() {
105106
e.printStackTrace();
106107
fail("Could not stop the Jetty server: " + e);
107108
}
109+
super.tearDown();
108110
}
109-
}
111+
}

jwebunit-selenium-plugin/pom.xml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,32 @@
2525
<exclude>**/*AbstractTests.java</exclude>
2626
</excludes>
2727
</configuration>
28-
</plugin>
28+
</plugin>
29+
<!-- Requires java 1.5 -->
30+
<!--plugin>
31+
<groupId>org.codehaus.mojo</groupId>
32+
<artifactId>selenium-maven-plugin</artifactId>
33+
<executions>
34+
<execution>
35+
<id>start</id>
36+
<phase>process-test-classes</phase>
37+
<goals>
38+
<goal>start-server</goal>
39+
</goals>
40+
<configuration>
41+
<background>true</background>
42+
<multiWindow>true</multiWindow>
43+
</configuration>
44+
</execution>
45+
</executions>
46+
<dependencies>
47+
<dependency>
48+
<groupId>org.openqa.selenium.server</groupId>
49+
<artifactId>selenium-server</artifactId>
50+
<version>1.0-beta-1</version>
51+
</dependency>
52+
</dependencies>
53+
</plugin-->
2954
</plugins>
3055
</build>
3156
<dependencies>
@@ -38,6 +63,10 @@
3863
<groupId>org.openqa.selenium.client-drivers</groupId>
3964
<artifactId>selenium-java-client-driver</artifactId>
4065
<exclusions>
66+
<exclusion>
67+
<groupId>org.openqa.selenium.server</groupId>
68+
<artifactId>selenium-server-coreless</artifactId>
69+
</exclusion>
4170
<exclusion>
4271
<groupId>org.openqa.selenium.server</groupId>
4372
<artifactId>selenium-server</artifactId>
@@ -71,4 +100,4 @@
71100
<properties>
72101
<topDirectoryLocation>..</topDirectoryLocation>
73102
</properties>
74-
</project>
103+
</project>

jwebunit-selenium-plugin/src/test/java/net/sourceforge/jwebunit/selenium/JWebUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static Test suite() {
5050
suite.addTestSuite(RedirectionTest.class);
5151
suite.addTestSuite(ImageTest.class);
5252
suite.addTestSuite(ResourceBundleAssertionsTest.class);
53-
suite.addTest(JUnitPerfTest.suite());
53+
//suite.addTest(JUnitPerfTest.suite());
5454
// $JUnit-END$
5555
return new JettySetup(suite);
5656
}

0 commit comments

Comments
 (0)