Package org.bladerunnerjs.model.engine

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


  @Test
  public void dirExistsShouldReturnTrueIfTheDirectoryExists()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR));
   
    assertTrue(node.dirExists());
  }
 
  @Test
  public void dirExistsShouldReturnFalseIfTheDirectoryDoesNotExist()
  {
View Full Code Here


  @Test
  public void dirExistsShouldReturnFalseIfTheDirectoryDoesNotExist()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR, "non-existent-directory"));
   
    assertFalse(node.dirExists());
  }
 
  @Test
  public void dirExistsShouldNotThrowAnExceptionIfANullDirWasProvided()
  {
View Full Code Here

  @Test
  public void dirExistsShouldNotThrowAnExceptionIfANullDirWasProvided()
  {
    Node node = new TestNode(mockRootNode, null, null);
   
    assertFalse(node.dirExists());
  }
 
  @Test
  public void containsFileShouldNotThrowAnExceptionIfDirIsNull()
  {
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.