Package org.neo4j.kernel

Examples of org.neo4j.kernel.EmbeddedGraphDatabase


    @BeforeClass
    public static void setUpStuff()
    {
        String storeDir = "target/var/freshindex";
        deleteFileOrDirectory( new File( storeDir ) );
        graphDb = new EmbeddedGraphDatabase( storeDir );
    }
View Full Code Here


    private static AbstractGraphDatabase graphdb;

    @BeforeClass
    public static void startup()
    {
        graphdb = new EmbeddedGraphDatabase( target.graphDbDir( true ).getAbsolutePath() );
    }
View Full Code Here

    @BeforeClass
    public static void createDatabase()
    {
        String storeDir = "target/var/id_test";
        AbstractNeo4jTestCase.deleteFileOrDirectory( new File( storeDir ) );
        graphdb = new EmbeddedGraphDatabase( storeDir );
        graphDbReadOnly = new EmbeddedReadOnlyGraphDatabase( storeDir );
    }
View Full Code Here

   
    @Test
    public void makeSureStoreWithTooManyRelationshipTypesCannotBeUpgraded() throws Exception
    {
        String path = path( 0 );
        new EmbeddedGraphDatabase( path ).shutdown();
        createManyRelationshipTypes( path, 0x10000 );
        assertCannotStart( path, "Shouldn't be able to upgrade with that many types set" );
    }
View Full Code Here

   
    @Test
    public void makeSureStoreWithDecentAmountOfRelationshipTypesCanBeUpgraded() throws Exception
    {
        String path = path( 1 );
        new EmbeddedGraphDatabase( path ).shutdown();
        createManyRelationshipTypes( path, 0xFFFF );
        assertCanStart( path );
    }
View Full Code Here

    }
   
    @Test( expected=TransactionFailureException.class )
    public void makeSureStoreWithTooBigStringBlockSizeCannotBeCreated() throws Exception
    {
        new EmbeddedGraphDatabase( path( 2 ), stringMap( STRING_BLOCK_SIZE, "" + (0x10000) ) );
    }
View Full Code Here

    }
   
    @Test
    public void makeSureStoreWithDecentStringBlockSizeCanBeCreated() throws Exception
    {
        new EmbeddedGraphDatabase( path( 3 ), stringMap( STRING_BLOCK_SIZE, "" + (0xFFFF) ) ).shutdown();
    }
View Full Code Here

    }
   
    @Test( expected=TransactionFailureException.class )
    public void makeSureStoreWithTooBigArrayBlockSizeCannotBeCreated() throws Exception
    {
        new EmbeddedGraphDatabase( path( 4 ), stringMap( ARRAY_BLOCK_SIZE, "" + (0x10000) ) );
    }
View Full Code Here

    }
   
    @Test
    public void makeSureStoreWithDecentArrayBlockSizeCanBeCreated() throws Exception
    {
        new EmbeddedGraphDatabase( path( 5 ), stringMap( ARRAY_BLOCK_SIZE, "" + (0xFFFF) ) ).shutdown();
    }
View Full Code Here

   
    @Test
    public void makeSureStoreWithTooBigStringBlockSizeCannotBeUpgraded() throws Exception
    {
        String path = path( 6 );
        new EmbeddedGraphDatabase( path ).shutdown();
        setBlockSize( new File( path, "neostore.propertystore.db.strings" ), 0x10000, "StringPropertyStore v0.9.5" );
        assertCannotStart( path, "Shouldn't be able to upgrade with block size that big" );
    }
View Full Code Here

TOP

Related Classes of org.neo4j.kernel.EmbeddedGraphDatabase

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.