jdk/test/java/nio/file/Files/Misc.java
changeset 22351 d8ac878ba804
parent 21839 31c719abe9ec
equal deleted inserted replaced
22350:4143cdafa0d5 22351:d8ac878ba804
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /* @test
    24 /* @test
    25  * @bug 4313887 6838333 8005566
    25  * @bug 4313887 6838333 8005566 8032220
    26  * @summary Unit test for miscellenous methods in java.nio.file.Files
    26  * @summary Unit test for miscellenous methods in java.nio.file.Files
    27  * @library ..
    27  * @library ..
    28  */
    28  */
    29 
    29 
    30 import java.nio.file.*;
    30 import java.nio.file.*;
    74         } catch (FileAlreadyExistsException x) { }
    74         } catch (FileAlreadyExistsException x) { }
    75         try {
    75         try {
    76             createDirectories(file.resolve("y"));
    76             createDirectories(file.resolve("y"));
    77             throw new RuntimeException("failure expected");
    77             throw new RuntimeException("failure expected");
    78         } catch (IOException x) { }
    78         } catch (IOException x) { }
       
    79 
       
    80         // the root directory always exists
       
    81         Path root = Paths.get("/");
       
    82         Files.createDirectories(root);
       
    83         Files.createDirectories(root.toAbsolutePath());
    79     }
    84     }
    80 
    85 
    81     /**
    86     /**
    82      * Tests isHidden
    87      * Tests isHidden
    83      */
    88      */