Package org.apache.hadoop.fs.shell.find

Examples of org.apache.hadoop.fs.shell.find.Prune


public class TestPrune extends TestExpression {

  @Test
  public void apply() throws IOException {
    Prune prune = new Prune();
    PathData item = mock(PathData.class);
    Result result = prune.apply(item);
    assertTrue(result.isPass());
    assertFalse(result.isDescend());
  }
View Full Code Here


  }

  // check that the prune command is ignore when doing a depth first find
  @Test
  public void applyDepth() throws IOException {
    Prune prune = new Prune();
    FindOptions options = new FindOptions();
    options.setDepth(true);
    prune.initialise(options);
    PathData item = mock(PathData.class);
    assertEquals(Result.PASS, prune.apply(item));
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.fs.shell.find.Prune

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.