use of org.neo4j.kernel.configuration.Config in project neo4j by neo4j.
the class RecordFormatSelectorTest method selectForStoreOrConfigWithOnlyStandardStoredFormat.
@Test
public void selectForStoreOrConfigWithOnlyStandardStoredFormat() throws IOException {
PageCache pageCache = getPageCache();
prepareNeoStoreFile(Standard.LATEST_STORE_VERSION, pageCache);
Config config = Config.empty();
assertSame(Standard.LATEST_RECORD_FORMATS, selectForStoreOrConfig(config, storeDir, fs, pageCache, LOG));
}
use of org.neo4j.kernel.configuration.Config in project neo4j by neo4j.
the class RecordFormatSelectorTest method selectForStoreOrConfigWithOnlyHighLimitStoredFormat.
@Test
public void selectForStoreOrConfigWithOnlyHighLimitStoredFormat() throws IOException {
PageCache pageCache = getPageCache();
prepareNeoStoreFile(HighLimit.STORE_VERSION, pageCache);
Config config = Config.empty();
assertSame(HighLimit.RECORD_FORMATS, selectForStoreOrConfig(config, storeDir, fs, pageCache, LOG));
}
use of org.neo4j.kernel.configuration.Config in project neo4j by neo4j.
the class RecordFormatSelectorTest method selectForStoreOrConfigWithOnlyHighLimitConfiguredFormat.
@Test
public void selectForStoreOrConfigWithOnlyHighLimitConfiguredFormat() throws IOException {
PageCache pageCache = getPageCache();
Config config = config(HighLimit.NAME);
assertSame(HighLimit.RECORD_FORMATS, selectForStoreOrConfig(config, storeDir, fs, pageCache, LOG));
}
use of org.neo4j.kernel.configuration.Config in project neo4j by neo4j.
the class RecordFormatSelectorTest method selectForStoreOrConfigWithSameHighLimitConfiguredAndStoredFormat.
@Test
public void selectForStoreOrConfigWithSameHighLimitConfiguredAndStoredFormat() throws IOException {
PageCache pageCache = getPageCache();
prepareNeoStoreFile(HighLimit.STORE_VERSION, pageCache);
Config config = config(HighLimit.NAME);
assertSame(HighLimit.RECORD_FORMATS, selectForStoreOrConfig(config, storeDir, fs, pageCache, LOG));
}
use of org.neo4j.kernel.configuration.Config in project neo4j by neo4j.
the class RecordFormatSelectorTest method selectNewestFormatForExistingStoreWithLegacyFormat.
@Test
public void selectNewestFormatForExistingStoreWithLegacyFormat() throws IOException {
PageCache pageCache = getPageCache();
prepareNeoStoreFile(StandardV2_3.STORE_VERSION, pageCache);
Config config = Config.empty();
assertSame(defaultFormat(), selectNewestFormat(config, storeDir, fs, getPageCache(), LOG));
}
Aggregations