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 85
85
86
86
public class BoltProtocolV1Test
87
87
{
88
- private static final String QUERY = "RETURN $x" ;
88
+ private static final String QUERY_TEXT = "RETURN $x" ;
89
89
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 ) );
91
91
92
92
private final BoltProtocol protocol = createProtocol ();
93
93
private final EmbeddedChannel channel = new EmbeddedChannel ();
@@ -369,7 +369,7 @@ private static ResponseHandler verifyRunInvoked( Connection connection )
369
369
ArgumentCaptor <ResponseHandler > runHandlerCaptor = ArgumentCaptor .forClass ( ResponseHandler .class );
370
370
ArgumentCaptor <ResponseHandler > pullAllHandlerCaptor = ArgumentCaptor .forClass ( ResponseHandler .class );
371
371
372
- verify ( connection ).write ( eq ( new RunMessage ( QUERY , PARAMS ) ), runHandlerCaptor .capture () );
372
+ verify ( connection ).write ( eq ( new RunMessage ( QUERY_TEXT , PARAMS ) ), runHandlerCaptor .capture () );
373
373
verify ( connection ).writeAndFlush ( eq ( PullAllMessage .PULL_ALL ), pullAllHandlerCaptor .capture () );
374
374
375
375
assertThat ( runHandlerCaptor .getValue (), instanceOf ( RunResponseHandler .class ) );
Original file line number Diff line number Diff line change 92
92
93
93
public class BoltProtocolV3Test
94
94
{
95
- protected static final String QUERY = "RETURN $x" ;
95
+ protected static final String QUERY_TEXT = "RETURN $x" ;
96
96
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 ) );
98
98
99
99
protected final BoltProtocol protocol = createProtocol ();
100
100
private final EmbeddedChannel channel = new EmbeddedChannel ();
You can’t perform that action at this time.
0 commit comments