Skip to content

Commit 9f2fb5e

Browse files
author
Zhen
committed
Rename example file for doc tool to find the files
1 parent 7988061 commit 9f2fb5e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/src/main/java/org/neo4j/docs/driver/HelloWorld.java renamed to examples/src/main/java/org/neo4j/docs/driver/HelloWorldExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
// end::hello-world-import[]
3333

3434
// tag::hello-world[]
35-
public class HelloWorld implements AutoCloseable
35+
public class HelloWorldExample implements AutoCloseable
3636
{
3737
private final Driver driver;
3838

39-
public HelloWorld( String uri, String user, String password )
39+
public HelloWorldExample( String uri, String user, String password )
4040
{
4141
driver = GraphDatabase.driver( uri, AuthTokens.basic( user, password ) );
4242
}
4343

4444
public static void main( String... args ) throws Exception
4545
{
46-
HelloWorld greeter = new HelloWorld( "bolt://localhost:7687", "neo4j", "password" );
46+
HelloWorldExample greeter = new HelloWorldExample( "bolt://localhost:7687", "neo4j", "password" );
4747
greeter.printGreeting( "hello, world" );
4848
}
4949

examples/src/test/java/org/neo4j/docs/driver/ExamplesIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public void testShouldRunDriverLifecycleExample()
207207
public void testShouldRunHelloWorld() throws Exception
208208
{
209209
// Given
210-
HelloWorld greeter = new HelloWorld( neo4j.uri().toString(), USER, PASSWORD );
210+
HelloWorldExample greeter = new HelloWorldExample( neo4j.uri().toString(), USER, PASSWORD );
211211

212212
// When
213213
StdIOCapture stdIO = new StdIOCapture();

0 commit comments

Comments
 (0)