Package org.bladerunnerjs.model.engine

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


  @Test
  public void containsFileShouldNotThrowAnExceptionIfDirIsNull()
  {
    Node node = new TestNode(mockRootNode, null, null);
   
    assertFalse(node.containsFile("some-file.txt"));
  }
 
  @Test
  public void containsFileShouldReturnTrueIfTheFileExists()
  {
View Full Code Here


  @Test
  public void containsFileShouldReturnTrueIfTheFileExists()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR));
   
    assertTrue(node.containsFile("some-file.txt"));
  }
 
  @Test
  public void containsFileShouldReturnFalseIfTheFileDoesNotExist()
  {
View Full Code Here

  @Test
  public void containsFileShouldReturnFalseIfTheFileDoesNotExist()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR));
   
    assertFalse(node.containsFile("non-existent-file.txt"));
  }
 
  @Test
  public void validDirNamesCanBeCheckedBeforehand() throws Exception {
    TestRootNode rootNode = new TestRootNode(new File(TEST_DIR, "brjs-root-node"));
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.