This repository was archived by the owner on Apr 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util
src/test/java/net/sourceforge/jwebunit/selenium Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff line change 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 >
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 >
71100 <properties >
72101 <topDirectoryLocation >..</topDirectoryLocation >
73102 </properties >
74- </project >
103+ </project >
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments