This repository was archived by the owner on Jul 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
main/java/org/neo4j/shell/cli
test/java/org/neo4j/shell/cli Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ private static ArgumentParser setupParser()
128128 ArgumentGroup connGroup = parser .addArgumentGroup ("connection arguments" );
129129 connGroup .addArgument ("-a" , "--address" )
130130 .help ("address and port to connect to" )
131- .setDefault ("bolt ://localhost:7687" );
131+ .setDefault ("neo4j ://localhost:7687" );
132132 connGroup .addArgument ("-u" , "--username" )
133133 .setDefault ("" )
134134 .help ("username to connect as. Can also be specified using environment variable " + ConnectionConfig .USERNAME_ENV_VAR );
Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ public void testWrap() {
5454 assertNull ("invalid wrap" ,CliArgHelper .parse ("--wrap foo" .split (" " )));
5555 }
5656
57+ @ Test
58+ public void testDefaultScheme () {
59+ CliArgs arguments = CliArgHelper .parse ();
60+ assertNotNull ( arguments );
61+ assertEquals ( "neo4j://" , arguments .getScheme () );
62+ }
63+
5764 @ Test
5865 public void testDebugIsNotDefault () {
5966 assertFalse ("Debug should not be the default mode" ,
You can’t perform that action at this time.
0 commit comments