Skip to content

Commit

Permalink
Move ExternalResource rule to common module
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Jan 2, 2017
1 parent c5e4ac0 commit b757cd9
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 3 deletions.
Expand Up @@ -24,7 +24,7 @@
import org.junit.runners.model.Statement;

/**
* A better version of {@link org.junit.rules.ExternalResource} that properly handles exceptions in {@link #after()}.
* A better version of {@link org.junit.rules.ExternalResource} that properly handles exceptions in {@link #after(boolean)}.
*/
public abstract class ExternalResource implements TestRule
{
Expand Down
7 changes: 6 additions & 1 deletion community/cypher/cypher/pom.xml
Expand Up @@ -144,10 +144,15 @@

<!-- neo4j testing -->

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-common</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-io</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand Down
7 changes: 7 additions & 0 deletions community/cypher/pom.xml
Expand Up @@ -239,6 +239,13 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-common</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-io</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions community/dbms/pom.xml
Expand Up @@ -85,6 +85,13 @@
<artifactId>commons-compress</artifactId>
</dependency>

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-common</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-io</artifactId>
Expand Down
9 changes: 8 additions & 1 deletion community/graphviz/pom.xml
Expand Up @@ -58,7 +58,14 @@ the relevant Commercial Agreement.
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-common</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
7 changes: 7 additions & 0 deletions community/server/pom.xml
Expand Up @@ -300,6 +300,13 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-common</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-io</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions community/shell/pom.xml
Expand Up @@ -92,6 +92,13 @@ the relevant Commercial Agreement.
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-common</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-io</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions enterprise/management/pom.xml
Expand Up @@ -103,6 +103,13 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-common</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-io</artifactId>
Expand Down

0 comments on commit b757cd9

Please sign in to comment.