Example usage for java.nio.file OpenOption OpenOption

List of usage examples for java.nio.file OpenOption OpenOption

Introduction

In this page you can find the example usage for java.nio.file OpenOption OpenOption.

Prototype

OpenOption

Source Link

Usage

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";
        }
    });
}