@Override @Nonnull public AdminCommand create( Path homeDir, Path configDir, OutsideWorld outsideWorld ) { return new HelpCommand( usage, outsideWorld::stdOutLine, CommandLocator.fromServiceLocator() ); } }
public static void main( String[] args ) throws IOException { Path homeDir = Paths.get( NEO4J_HOME ); Path configDir = Paths.get( NEO4J_CONF ); boolean debug = NEO4J_DEBUG != null; try ( RealOutsideWorld outsideWorld = new RealOutsideWorld() ) { new AdminTool( CommandLocator.fromServiceLocator(), BlockerLocator.fromServiceLocator(), outsideWorld, debug ).execute( homeDir, configDir, args ); } }
@Before public void setup() { File graphDir = new File( GraphDatabaseSettings.DEFAULT_DATABASE_NAME ); confDir = new File( graphDir, "conf" ); homeDir = new File( graphDir, "home" ); out = mock( OutsideWorld.class ); resetOutsideWorldMock(); tool = new AdminTool( CommandLocator.fromServiceLocator(), BlockerLocator.fromServiceLocator(), out, true ); }
@Before public void setup() { File graphDir = new File( GraphDatabaseSettings.DEFAULT_DATABASE_NAME ); confDir = new File( graphDir, "conf" ); homeDir = new File( graphDir, "home" ); out = mock( OutsideWorld.class ); resetOutsideWorldMock(); tool = new AdminTool( CommandLocator.fromServiceLocator(), BlockerLocator.fromServiceLocator(), out, true ); }