Skip to content

Commit

Permalink
Migrate RoutingExamplesIT to Testcontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
injectives committed May 10, 2022
1 parent 59600be commit 9dfe34a
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 1,304 deletions.
15 changes: 10 additions & 5 deletions driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,18 @@
<artifactId>bcprov-jdk15on</artifactId>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>neo4j</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;

Expand Down Expand Up @@ -88,7 +87,6 @@
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import static org.neo4j.driver.SessionConfig.builder;

@ExtendWith( DumpLogsOnFailureWatcher.class )
abstract class AbstractStressTestBase<C extends AbstractContext>
{
private static final int THREAD_COUNT = Integer.getInteger( "threadCount", 8 );
Expand Down Expand Up @@ -202,8 +200,6 @@ private void runStressTest( Function<C,List<Future<?>>> threadLauncher ) throws
verifyResults( context, resourcesInfo );
}

abstract void dumpLogs();

abstract URI databaseUri();

abstract AuthToken authToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ void printStats( Context context )
System.out.println( "Bookmark failures: " + context.getBookmarkFailures() );
}

@Override
void dumpLogs()
{
clusterRule.dumpClusterLogs();
}

@Override
List<BlockingCommand<Context>> createTestSpecificBlockingCommands()
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,4 @@ List<RxCommand<Context>> createTestSpecificRxCommands()
static class Context extends AbstractContext
{
}

@Override
void dumpLogs()
{
neo4j.dumpLogs();
}
}
Loading

0 comments on commit 9dfe34a

Please sign in to comment.