File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
driver/src/test/java/org/neo4j/driver/internal/messaging Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 86
86
87
87
public class BoltProtocolV1Test
88
88
{
89
- private static final String QUERY = "RETURN $x" ;
89
+ private static final String QUERY_TEXT = "RETURN $x" ;
90
90
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 ) );
92
92
93
93
private final BoltProtocol protocol = createProtocol ();
94
94
private final EmbeddedChannel channel = new EmbeddedChannel ();
@@ -370,7 +370,7 @@ private static ResponseHandler verifyRunInvoked( Connection connection )
370
370
ArgumentCaptor <ResponseHandler > runHandlerCaptor = ArgumentCaptor .forClass ( ResponseHandler .class );
371
371
ArgumentCaptor <ResponseHandler > pullAllHandlerCaptor = ArgumentCaptor .forClass ( ResponseHandler .class );
372
372
373
- verify ( connection ).write ( eq ( new RunMessage ( QUERY , PARAMS ) ), runHandlerCaptor .capture () );
373
+ verify ( connection ).write ( eq ( new RunMessage ( QUERY_TEXT , PARAMS ) ), runHandlerCaptor .capture () );
374
374
verify ( connection ).writeAndFlush ( eq ( PullAllMessage .PULL_ALL ), pullAllHandlerCaptor .capture () );
375
375
376
376
assertThat ( runHandlerCaptor .getValue (), instanceOf ( RunResponseHandler .class ) );
Original file line number Diff line number Diff line change 93
93
94
94
public class BoltProtocolV3Test
95
95
{
96
- protected static final String QUERY = "RETURN $x" ;
96
+ protected static final String QUERY_TEXT = "RETURN $x" ;
97
97
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 ) );
99
99
100
100
protected final BoltProtocol protocol = createProtocol ();
101
101
private final EmbeddedChannel channel = new EmbeddedChannel ();
You can’t perform that action at this time.
0 commit comments