File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/java/org/neo4j/docs/driver
test/java/org/neo4j/docs/driver Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 32
32
// end::hello-world-import[]
33
33
34
34
// tag::hello-world[]
35
- public class HelloWorld implements AutoCloseable
35
+ public class HelloWorldExample implements AutoCloseable
36
36
{
37
37
private final Driver driver ;
38
38
39
- public HelloWorld ( String uri , String user , String password )
39
+ public HelloWorldExample ( String uri , String user , String password )
40
40
{
41
41
driver = GraphDatabase .driver ( uri , AuthTokens .basic ( user , password ) );
42
42
}
43
43
44
44
public static void main ( String ... args ) throws Exception
45
45
{
46
- HelloWorld greeter = new HelloWorld ( "bolt://localhost:7687" , "neo4j" , "password" );
46
+ HelloWorldExample greeter = new HelloWorldExample ( "bolt://localhost:7687" , "neo4j" , "password" );
47
47
greeter .printGreeting ( "hello, world" );
48
48
}
49
49
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ public void testShouldRunDriverLifecycleExample()
207
207
public void testShouldRunHelloWorld () throws Exception
208
208
{
209
209
// Given
210
- HelloWorld greeter = new HelloWorld ( neo4j .uri ().toString (), USER , PASSWORD );
210
+ HelloWorldExample greeter = new HelloWorldExample ( neo4j .uri ().toString (), USER , PASSWORD );
211
211
212
212
// When
213
213
StdIOCapture stdIO = new StdIOCapture ();
You can’t perform that action at this time.
0 commit comments