Package org.bladerunnerjs.model.engine

Examples of org.bladerunnerjs.model.engine.Node.file()


  @Test
  public void fileShouldBeASubPathOfTheGivenDir()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR));
   
    assertEquals(new File(node.dir(), "path/to-file").getAbsolutePath(), node.file("path/to-file").getAbsolutePath());
  }
 
  @Test
  public void fileShouldReturnAnUnrootedFileIfDirIsNull()
  {
View Full Code Here


  @Test
  public void fileShouldReturnAnUnrootedFileIfDirIsNull()
  {
    Node node = new TestNode(mockRootNode, null, null);
   
    assertEquals(new File("path/to-file").getAbsolutePath(), node.file("path/to-file").getAbsolutePath());
  }
 
  @Test
  public void dirExistsShouldReturnTrueIfTheDirectoryExists()
  {
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.