System.setProperty(ORG_NEO4J_SERVER_PROPERTIES, "src/functionaltest/resources/etc/neo-server/neo-server.properties");
String dbDir = configurator().configuration().getString("org.neo4j.database.location");
FileUtils.deleteDirectory(new File(dbDir));
}
@After
<BUG>public void tearDown() {
System.clearProperty(ORG_NEO4J_SERVER_PROPERTIES);
}
@Test
public void whenHealthCheckFailsServerShouldNotStart() {
NeoServer server = new NeoServer();
server.start(null);</BUG>
}

System.setProperty(ORG_NEO4J_SERVER_PROPERTIES, "src/functionaltest/resources/etc/neo-server/neo-server.properties");
String dbDir = configurator().configuration().getString("org.neo4j.database.location");
FileUtils.deleteDirectory(new File(dbDir));
}
@After
public void tearDown() throws Exception {
System.clearProperty(ORG_NEO4J_SERVER_PROPERTIES);
String dbDir = configurator().configuration().getString("org.neo4j.database.location");
FileUtils.deleteDirectory(new File(dbDir));
}
@Test
public void shouldDefaultToSensiblePortIfNoneSpecifiedInConfig() throws Exception {
System.setProperty(NeoServer.NEO_CONFIG_FILE_PROPERTY, configWithoutWebServerPort().getAbsolutePath());
