use of org.neo4j.server.configuration.ServerConfigurator in project neo4j-clean-remote-db-addon by jexp.
the class DeleteDatabaseTest method startServerWithACleanDb.
@BeforeClass
public static void startServerWithACleanDb() {
graphDatabase = new EmbeddedGraphDatabase("target/db1");
ServerConfigurator config = new ServerConfigurator(graphDatabase);
config.configuration().setProperty("org.neo4j.server.thirdparty.delete.key", "secret-key");
config.getThirdpartyJaxRsClasses().add(new ThirdPartyJaxRsPackage("org.neo4j.server.extension.test.delete", "/cleandb"));
WrappingNeoServerBootstrapper bootstrapper = new WrappingNeoServerBootstrapper(graphDatabase, config);
bootstrapper.start();
neoServer = bootstrapper.getServer();
}
Aggregations