Skip to content

Commit 45c5095

Browse files
committed
Bug fixes
1 parent 83aa083 commit 45c5095

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
@@ -86,9 +86,9 @@
8686

8787
public class BoltProtocolV1Test
8888
{
89-
private static final String QUERY = "RETURN $x";
89+
private static final String QUERY_TEXT = "RETURN $x";
9090
private static final Map<String,Value> PARAMS = singletonMap( "x", value( 42 ) );
91-
private static final Query QUERY = new Query( QUERY, value( PARAMS ) );
91+
private static final Query QUERY = new Query( QUERY_TEXT, value( PARAMS ) );
9292

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

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

376376
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
@@ -93,9 +93,9 @@
9393

9494
public class BoltProtocolV3Test
9595
{
96-
protected static final String QUERY = "RETURN $x";
96+
protected static final String QUERY_TEXT = "RETURN $x";
9797
protected static final Map<String,Value> PARAMS = singletonMap( "x", value( 42 ) );
98-
protected static final Query QUERY = new Query( QUERY, value( PARAMS ) );
98+
protected static final Query QUERY = new Query( QUERY_TEXT, value( PARAMS ) );
9999

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

0 commit comments

Comments
 (0)