Package org.neo4j.test

Examples of org.neo4j.test.ImpermanentGraphDatabase


            protected GraphDatabaseFactory getGraphDatabaseFactory(Configuration configuration) {
                return new GraphDatabaseFactory() {
                    @Override
                    public AbstractGraphDatabase createDatabase(String databaseStoreDirectory, Map<String, String> databaseProperties) {
                        try {
                            return new ImpermanentGraphDatabase();
                        } catch (IOException e) {
                            throw new RuntimeException(e);
                        }
                    }
                };
View Full Code Here


        template = new Neo4jTemplate(graphDatabase, transactionManager);
        createData();
    }

    protected GraphDatabaseService createGraphDatabaseService() throws IOException {
        return new ImpermanentGraphDatabase();
    }
View Full Code Here

        return new JtaTransactionManager(new SpringTransactionManager(graphDatabaseService));
    }

    protected GraphDatabase createGraphDatabase() throws Exception
    {
        graphDatabaseService = new ImpermanentGraphDatabase( );
        return new DelegatingGraphDatabase(graphDatabaseService);
    }
View Full Code Here

    }

    @Before
    public void setUp() throws Exception {

        ImpermanentGraphDatabase db = new ImpermanentGraphDatabase();

        ServerConfigurator config = new ServerConfigurator(db);
        config.configuration().setProperty("org.neo4j.server.credentials", "neo4j:master");
        config.getThirdpartyJaxRsPackages().add(new ThirdPartyJaxRsPackage("org.neo4j.server.extension.auth", "/admin"));
        testBootstrapper = new WrappingNeoServerBootstrapper(db, config);
View Full Code Here

    private MultipleAuthenticationService service;
    private ImpermanentGraphDatabase graphDatabase;

    @Before public void setup() {
        graphDatabase = new ImpermanentGraphDatabase();
        service = new MultipleAuthenticationService(graphDatabase);
    }
View Full Code Here

    }
   
    @Before
    public void cleanContent()
    {
        ImpermanentGraphDatabase graphdb = (ImpermanentGraphDatabase) graphdb();
        graphdb.cleanContent();
        //clean
        gen.get().setGraph( graphdb() );
       
    }
View Full Code Here

    private ImpermanentGraphDatabase db;

    @Before
    public void setup() throws Exception {
        db = new ImpermanentGraphDatabase();
    }
View Full Code Here

    public void runThis() {
    }

    @Before
    public void setUp() throws Exception {
        ImpermanentGraphDatabase db = new ImpermanentGraphDatabase();
        final ServerConfigurator configurator = new ServerConfigurator(db) {
            @Override
            public List<ThirdPartyJaxRsPackage> getThirdpartyJaxRsPackages() {
                return Collections.singletonList(new ThirdPartyJaxRsPackage("org.springframework.data.neo4j.rest.support","/test"));
            }
View Full Code Here

    public static final String SERVER_ROOT_URI = "http://" + HOSTNAME + ":" + PORT + "/db/data/";
    private Node refNode;

    @BeforeClass
    public static void startDb() throws Exception {
        db = new ImpermanentGraphDatabase();
        final ServerConfigurator configurator = new ServerConfigurator(db);
        configurator.configuration().setProperty(Configurator.WEBSERVER_PORT_PROPERTY_KEY,PORT);
        final WrappingNeoServerBootstrapper bootstrapper = new WrappingNeoServerBootstrapper(db, configurator);
        int exit = bootstrapper.start();
        if (exit != 0 ) throw new IllegalStateException("Server not started correctly.");
View Full Code Here

    private static NeoServer neoServer;
    private static final String SERVER_ROOT_URI = "http://" + HOSTNAME + ":" + PORT + "/db/data/";
    private static ImpermanentGraphDatabase db;

    public void startServer() throws Exception {
        db = new ImpermanentGraphDatabase();
        final ServerConfigurator configurator = new ServerConfigurator(db);
        configurator.configuration().setProperty(Configurator.WEBSERVER_PORT_PROPERTY_KEY,PORT);
        final WrappingNeoServerBootstrapper bootstrapper = new WrappingNeoServerBootstrapper(db, configurator);
        bootstrapper.start();
        neoServer = bootstrapper.getServer();
View Full Code Here

TOP

Related Classes of org.neo4j.test.ImpermanentGraphDatabase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.