Search in sources :

Example 1 with PageCacheRule

use of org.neo4j.test.rule.PageCacheRule in project neo4j by neo4j.

the class StoreFilesWithRealFileSystemTest method createRules.

@Override
protected void createRules() {
    testDirectory = TestDirectory.testDirectory(StoreFilesTest.class);
    DefaultFileSystemRule defaultFileSystemRule = new DefaultFileSystemRule();
    fileSystemRule = defaultFileSystemRule::get;
    hiddenFileSystemRule = new EphemeralFileSystemRule();
    pageCacheRule = new PageCacheRule();
    rules = RuleChain.outerRule(defaultFileSystemRule).around(testDirectory).around(hiddenFileSystemRule).around(pageCacheRule);
}
Also used : DefaultFileSystemRule(org.neo4j.test.rule.fs.DefaultFileSystemRule) EphemeralFileSystemRule(org.neo4j.test.rule.fs.EphemeralFileSystemRule) PageCacheRule(org.neo4j.test.rule.PageCacheRule)

Example 2 with PageCacheRule

use of org.neo4j.test.rule.PageCacheRule in project neo4j by neo4j.

the class StoreFilesTest method createRules.

protected void createRules() {
    testDirectory = TestDirectory.testDirectory(StoreFilesTest.class);
    EphemeralFileSystemRule ephemeralFileSystemRule = new EphemeralFileSystemRule();
    fileSystemRule = ephemeralFileSystemRule;
    hiddenFileSystemRule = new EphemeralFileSystemRule();
    pageCacheRule = new PageCacheRule();
    rules = RuleChain.outerRule(ephemeralFileSystemRule).around(testDirectory).around(hiddenFileSystemRule).around(pageCacheRule);
}
Also used : EphemeralFileSystemRule(org.neo4j.test.rule.fs.EphemeralFileSystemRule) PageCacheRule(org.neo4j.test.rule.PageCacheRule)

Aggregations

PageCacheRule (org.neo4j.test.rule.PageCacheRule)2 EphemeralFileSystemRule (org.neo4j.test.rule.fs.EphemeralFileSystemRule)2 DefaultFileSystemRule (org.neo4j.test.rule.fs.DefaultFileSystemRule)1