use of org.neo4j.kernel.EmbeddedGraphDatabase in project graphdb by neo4j-attic.
the class TestUpgradeStore method makeSureStoreWithDecentAmountOfRelationshipTypesCanBeUpgraded.
@Test
public void makeSureStoreWithDecentAmountOfRelationshipTypesCanBeUpgraded() throws Exception {
String path = path(1);
new EmbeddedGraphDatabase(path).shutdown();
createManyRelationshipTypes(path, 0xFFFF);
assertCanStart(path);
}
use of org.neo4j.kernel.EmbeddedGraphDatabase in project graphdb by neo4j-attic.
the class TestUpgradeStore method makeSureStoreWithTooBigArrayBlockSizeCannotBeUpgraded.
@Test
public void makeSureStoreWithTooBigArrayBlockSizeCannotBeUpgraded() throws Exception {
String path = path(8);
new EmbeddedGraphDatabase(path).shutdown();
setBlockSize(new File(path, "neostore.propertystore.db.arrays"), 0x10000, "ArrayPropertyStore v0.9.5");
assertCannotStart(path, "Shouldn't be able to upgrade with block size that big");
}
use of org.neo4j.kernel.EmbeddedGraphDatabase in project graphdb by neo4j-attic.
the class TestUpgradeStore method makeSureStoreCantBeUpgradedIfNotExplicitlyToldTo.
@Test
public void makeSureStoreCantBeUpgradedIfNotExplicitlyToldTo() throws Exception {
String path = path(11);
new EmbeddedGraphDatabase(path).shutdown();
setOlderNeoStoreVersion(path);
try {
new EmbeddedGraphDatabase(path);
fail("Shouldn't be able to upgrade if not told to");
} catch (TransactionFailureException e) {
if (!(e.getCause() instanceof IllegalStoreVersionException)) {
throw e;
}
}
}
use of org.neo4j.kernel.EmbeddedGraphDatabase in project graphdb by neo4j-attic.
the class TestUpgradeStore method makeSureStoreWithDecentStringBlockSizeCanBeUpgraded.
@Test
public void makeSureStoreWithDecentStringBlockSizeCanBeUpgraded() throws Exception {
String path = path(7);
new EmbeddedGraphDatabase(path).shutdown();
setBlockSize(new File(path, "neostore.propertystore.db.strings"), 0xFFFF, "StringPropertyStore v0.9.5");
assertCanStart(path);
}
use of org.neo4j.kernel.EmbeddedGraphDatabase in project graphdb by neo4j-attic.
the class TestUpgradeStore method makeSureStoreWithDecentArrayBlockSizeCanBeUpgraded.
@Test
public void makeSureStoreWithDecentArrayBlockSizeCanBeUpgraded() throws Exception {
String path = path(9);
new EmbeddedGraphDatabase(path).shutdown();
setBlockSize(new File(path, "neostore.propertystore.db.arrays"), 0xFFFF, "ArrayPropertyStore v0.9.5");
assertCanStart(path);
}
Aggregations