List of usage examples for java.nio.file OpenOption OpenOption
OpenOption
From source file:org.neo4j.io.pagecache.PageCacheTest.java
@Test(timeout = SEMI_LONG_TIMEOUT_MILLIS) public void mustThrowOnUnsupportedOpenOptions() throws Exception { getPageCache(fs, maxPages, pageCachePageSize, PageCacheTracer.NULL); verifyMappingWithOpenOptionThrows(StandardOpenOption.CREATE_NEW); verifyMappingWithOpenOptionThrows(StandardOpenOption.SYNC); verifyMappingWithOpenOptionThrows(StandardOpenOption.DSYNC); verifyMappingWithOpenOptionThrows(new OpenOption() { @Override//ww w . jav a2s. c o m public String toString() { return "NonStandardOpenOption"; } }); }