Search in sources :

Example 1 with ServerConfigurator

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();
}
Also used : EmbeddedGraphDatabase(org.neo4j.kernel.EmbeddedGraphDatabase) ServerConfigurator(org.neo4j.server.configuration.ServerConfigurator) ThirdPartyJaxRsPackage(org.neo4j.server.configuration.ThirdPartyJaxRsPackage) BeforeClass(org.junit.BeforeClass)

Aggregations

BeforeClass (org.junit.BeforeClass)1 EmbeddedGraphDatabase (org.neo4j.kernel.EmbeddedGraphDatabase)1 ServerConfigurator (org.neo4j.server.configuration.ServerConfigurator)1 ThirdPartyJaxRsPackage (org.neo4j.server.configuration.ThirdPartyJaxRsPackage)1