-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple junit helper classes into their own module
- Loading branch information
1 parent
c252320
commit 879da98
Showing
15 changed files
with
124 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
.../main/java/com/github/bordertech/webfriends/selenium/smart/junit/SmartDriverTestCase.java
This file was deleted.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
.../src/test/java/com/github/bordertech/webfriends/selenium/element/AbstractTestElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-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/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<name>webfriends-selenium-junit</name> | ||
<artifactId>webfriends-selenium-junit</artifactId> | ||
<description>Webfriends Selenium Junit Support</description> | ||
|
||
<parent> | ||
<groupId>com.github.bordertech.webfriends</groupId> | ||
<artifactId>webfriends-parent</artifactId> | ||
<version>0.0.6-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<packaging>jar</packaging> | ||
|
||
<dependencies> | ||
|
||
<!-- Selenium Utils --> | ||
<dependency> | ||
<groupId>com.github.bordertech.webfriends</groupId> | ||
<artifactId>webfriends-selenium-util</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<!-- LDE API --> | ||
<dependency> | ||
<groupId>com.github.bordertech.lde</groupId> | ||
<artifactId>lde-api</artifactId> | ||
<version>1.0.4</version> | ||
</dependency> | ||
|
||
<!-- JUnit --> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.13.2</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</project> |
2 changes: 1 addition & 1 deletion
2
...elenium/util/junit/ClosePoolListener.java → ...nds/junit/listener/ClosePoolListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ium/util/junit/ParallelCloseListener.java → ...junit/listener/ParallelCloseListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...m/util/junit/ServerStartStopListener.java → ...nit/listener/ServerStartStopListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...t/src/main/java/com/github/bordertech/webfriends/junit/runner/AbstractFriendTestCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.github.bordertech.webfriends.junit.runner; | ||
|
||
import com.github.bordertech.webfriends.selenium.util.driver.FriendDriver; | ||
import com.github.bordertech.webfriends.selenium.util.driver.FriendTestCase; | ||
import org.junit.runner.RunWith; | ||
|
||
/** | ||
* Test class that uses the {@link FriendSuite} runner. | ||
* | ||
* @param <T> the driver type | ||
*/ | ||
@RunWith(FriendSuite.class) | ||
public abstract class AbstractFriendTestCase<T extends FriendDriver> implements FriendTestCase<T> { | ||
|
||
private T driver; | ||
private String baseUrl; | ||
|
||
@Override | ||
public void initFriendTestCase(final T driver, final String baseUrl) { | ||
this.driver = driver; | ||
this.baseUrl = baseUrl; | ||
} | ||
|
||
@Override | ||
public T getDriver() { | ||
return driver; | ||
} | ||
|
||
@Override | ||
public String getBaseUrl() { | ||
return baseUrl; | ||
} | ||
|
||
} |
7 changes: 5 additions & 2 deletions
7
...ends/selenium/util/junit/FriendSuite.java → .../webfriends/junit/runner/FriendSuite.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...riends/selenium/util/server/Launcher.java → ...ech/webfriends/junit/server/Launcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../selenium/util/server/ServerProvider.java → ...bfriends/junit/server/ServerProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...um/util/server/ServerProviderDefault.java → ...s/junit/server/ServerProviderDefault.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters