Skip to content

Commit 067f0f3

Browse files
committed
Bug fixes
1 parent e57a1c3 commit 067f0f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

driver/src/test/java/org/neo4j/driver/internal/messaging/v1/BoltProtocolV1Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585

8686
public class BoltProtocolV1Test
8787
{
88-
private static final String QUERY = "RETURN $x";
88+
private static final String QUERY_TEXT = "RETURN $x";
8989
private static final Map<String,Value> PARAMS = singletonMap( "x", value( 42 ) );
90-
private static final Query QUERY = new Query( QUERY, value( PARAMS ) );
90+
private static final Query QUERY = new Query( QUERY_TEXT, value( PARAMS ) );
9191

9292
private final BoltProtocol protocol = createProtocol();
9393
private final EmbeddedChannel channel = new EmbeddedChannel();
@@ -369,7 +369,7 @@ private static ResponseHandler verifyRunInvoked( Connection connection )
369369
ArgumentCaptor<ResponseHandler> runHandlerCaptor = ArgumentCaptor.forClass( ResponseHandler.class );
370370
ArgumentCaptor<ResponseHandler> pullAllHandlerCaptor = ArgumentCaptor.forClass( ResponseHandler.class );
371371

372-
verify( connection ).write( eq( new RunMessage( QUERY, PARAMS ) ), runHandlerCaptor.capture() );
372+
verify( connection ).write( eq( new RunMessage( QUERY_TEXT, PARAMS ) ), runHandlerCaptor.capture() );
373373
verify( connection ).writeAndFlush( eq( PullAllMessage.PULL_ALL ), pullAllHandlerCaptor.capture() );
374374

375375
assertThat( runHandlerCaptor.getValue(), instanceOf( RunResponseHandler.class ) );

driver/src/test/java/org/neo4j/driver/internal/messaging/v3/BoltProtocolV3Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@
9292

9393
public class BoltProtocolV3Test
9494
{
95-
protected static final String QUERY = "RETURN $x";
95+
protected static final String QUERY_TEXT = "RETURN $x";
9696
protected static final Map<String,Value> PARAMS = singletonMap( "x", value( 42 ) );
97-
protected static final Query QUERY = new Query( QUERY, value( PARAMS ) );
97+
protected static final Query QUERY = new Query( QUERY_TEXT, value( PARAMS ) );
9898

9999
protected final BoltProtocol protocol = createProtocol();
100100
private final EmbeddedChannel channel = new EmbeddedChannel();

0 commit comments

Comments
 (0)