Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Function;

import org.neo4j.driver.AccessMode;
import org.neo4j.driver.AuthToken;
Expand Down Expand Up @@ -92,7 +91,7 @@
import static org.neo4j.driver.util.StubServer.insecureBuilder;
import static org.neo4j.driver.util.TestUtil.asOrderedSet;

class RoutingDriverBoltKitTest
class RoutingDriverBoltKitIT
{
private static StubServerController stubController;

Expand Down Expand Up @@ -568,7 +567,7 @@ void shouldHandleLeaderSwitchAndRetryWhenWritingInTxFunction() throws IOExceptio
catch ( InterruptedException ex )
{
}
return tx.run( "MATCH (n) RETURN n.name" ).list( RoutingDriverBoltKitTest::extractNameField );
return tx.run( "MATCH (n) RETURN n.name" ).list( RoutingDriverBoltKitIT::extractNameField );
} );
}

Expand Down Expand Up @@ -604,7 +603,7 @@ void shouldHandleLeaderSwitchAndRetryWhenWritingInTxFunctionAsync() throws IOExc
}
return tx.runAsync( "MATCH (n) RETURN n.name" );
} )
.thenComposeAsync( cursor -> cursor.listAsync( RoutingDriverBoltKitTest::extractNameField ) ) ) );
.thenComposeAsync( cursor -> cursor.listAsync( RoutingDriverBoltKitIT::extractNameField ) ) ) );

assertEquals( asList( "Foo", "Bar" ), names );

Expand Down Expand Up @@ -639,7 +638,7 @@ void shouldHandleLeaderSwitchAndRetryWhenWritingInTxFunctionRX() throws IOExcept
{
RxResult result = tx.run( "RETURN 1" );
return Flux.from( result.records() ).limitRate( 100 ).thenMany( tx.run( "MATCH (n) RETURN n.name" ).records() ).limitRate( 100 ).map(
RoutingDriverBoltKitTest::extractNameField );
RoutingDriverBoltKitIT::extractNameField );
} ), RxSession::close );

StepVerifier.create( fluxOfNames ).expectNext( "Foo", "Bar" ).verifyComplete();
Expand Down Expand Up @@ -1255,7 +1254,7 @@ void shouldUseResolverDuringRediscoveryWhenExistingRoutersFail() throws Exceptio
assertEquals( asList( "Alice", "Bob", "Eve" ), names1 );

// run second query with retries, it should rediscover using 9042 returned by the resolver and read from 9005
List<String> names2 = session.readTransaction( tx -> tx.run( "MATCH (n) RETURN n.name" ).list( RoutingDriverBoltKitTest::extractNameField ) );
List<String> names2 = session.readTransaction( tx -> tx.run( "MATCH (n) RETURN n.name" ).list( RoutingDriverBoltKitIT::extractNameField ) );
assertEquals( asList( "Bob", "Alice", "Tina" ), names2 );
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.neo4j.driver.Session;
import org.neo4j.driver.exceptions.FatalDiscoveryException;
import org.neo4j.driver.exceptions.ServiceUnavailableException;
import org.neo4j.driver.integration.RoutingDriverBoltKitTest.PortBasedServerAddressComparator;
import org.neo4j.driver.integration.RoutingDriverBoltKitIT.PortBasedServerAddressComparator;
import org.neo4j.driver.Bookmark;
import org.neo4j.driver.net.ServerAddress;
import org.neo4j.driver.net.ServerAddressResolver;
Expand All @@ -51,7 +51,7 @@
import static org.neo4j.driver.util.StubServer.INSECURE_CONFIG;
import static org.neo4j.driver.util.StubServer.insecureBuilder;

class RoutingDriverMultidatabaseBoltKitTest
class RoutingDriverMultidatabaseBoltKitIT
{
@Test
void shouldDiscoverForDatabase() throws IOException, InterruptedException, StubServer.ForceKilled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
import static org.neo4j.driver.util.TestUtil.asOrderedSet;
import static org.neo4j.driver.util.TestUtil.await;

class DirectDriverBoltKitTest
class DirectDriverBoltKitIT
{
private static StubServerController stubController;

Expand Down