@Before public void setup() throws Throwable { clusterManager = new ClusterManager(clusterOfSize(3), dir.graphDbDir(), stringMap()); clusterManager.start(); cluster = clusterManager.getDefaultCluster(); cluster.await(ClusterManager.allSeesAllAsAvailable()); master = cluster.getMaster(); slave1 = cluster.getAnySlave(); slave2 = cluster.getAnySlave(slave1); }
@Test public void shouldReadNodeRecords() throws IOException { File storeDir = dir.graphDbDir(); find19FormatHugeStoreDirectory(storeDir); Legacy19PropertyStoreReader propStoreReader = new Legacy19PropertyStoreReader(fs, new File(storeDir, "neostore.propertystore.db")); int propCount = 0; Iterator<PropertyRecord> iterator = propStoreReader.readPropertyStore(); while (iterator.hasNext()) { PropertyRecord record = iterator.next(); if (record.inUse()) { propCount++; } } assertEquals(6000, propCount); propStoreReader.close(); }