Package org.apache.droids.robot.walker

Examples of org.apache.droids.robot.walker.FileTask


  public void init()
  {
    Preconditions.checkNotNull(initialFiles);
    Preconditions.checkState(!initialFiles.isEmpty());
    for (File file : initialFiles) {
      queue.add(new FileTask(file, 0));
    }
  }
View Full Code Here


  public void init()
  {
    Preconditions.checkNotNull(initialFiles);
    Preconditions.checkState(!initialFiles.isEmpty());
    for (File file : initialFiles) {
      queue.add(new FileTask(file, 0));
    }
  }
View Full Code Here

    validator.setMaxDepth(5);
  }
 
  @Test
  public void whenTaskBelowMaxDepthIsValidated_thenTaskIsValid() throws Exception {
    final FileTask task = new FileTask(new File(""), 3);
   
    boolean isValid = validator.validate(task);
   
    Assert.assertTrue(isValid);
  }
View Full Code Here

    Assert.assertTrue(isValid);
  }
 
  @Test
  public void whenTaskEqualToMaxDepthIsValidated_thenTaskIsValid() throws Exception {
    final FileTask task = new FileTask(new File(""), 5);
   
    boolean isValid = validator.validate(task);
   
    Assert.assertTrue(isValid);
  }
View Full Code Here

    Assert.assertTrue(isValid);
  }
 
  @Test
  public void whenTaskOverMaxDepthIsValidated_thenTaskIsNotValid() throws Exception {
    final FileTask task = new FileTask(new File(""), 7);
   
    boolean isValid = validator.validate(task);
   
    Assert.assertFalse(isValid);
  }
View Full Code Here

TOP

Related Classes of org.apache.droids.robot.walker.FileTask

Copyright © 2018 www.massapicom. 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.