Package java.nio.file

Examples of java.nio.file.Path.resolveSibling()


  public void testData() throws Exception {
    File in = getFile("in/data.my.sql");
    Path out = convert(in);
    assertTrue("Failed to create main SQL file", out.toFile().exists());
    File expected = getFile("out/data.foo.csv");
    File actual = out.resolveSibling("foo.csv").toFile();
    assertFileEqual(expected, actual);
  }

  private File getFile(String name) throws URISyntaxException {
    URL url = getClass().getResource(name);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.