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

Examples of org.apache.hadoop.fs.shell.find.Blocksize.initialise()


  @Test
  public void applyEquals() throws IOException {
    Blocksize blocksize = new Blocksize();
    addArgument(blocksize, "3");
    blocksize.initialise(new FindOptions());

    assertEquals(Result.FAIL, blocksize.apply(one));
    assertEquals(Result.FAIL, blocksize.apply(two));
    assertEquals(Result.PASS, blocksize.apply(three));
    assertEquals(Result.FAIL, blocksize.apply(four));
View Full Code Here


  @Test
  public void applyGreaterThan() throws IOException {
    Blocksize blocksize = new Blocksize();
    addArgument(blocksize, "+3");
    blocksize.initialise(new FindOptions());

    assertEquals(Result.FAIL, blocksize.apply(one));
    assertEquals(Result.FAIL, blocksize.apply(two));
    assertEquals(Result.FAIL, blocksize.apply(three));
    assertEquals(Result.PASS, blocksize.apply(four));
View Full Code Here

  @Test
  public void applyLessThan() throws IOException {
    Blocksize blocksize = new Blocksize();
    addArgument(blocksize, "-3");
    blocksize.initialise(new FindOptions());

    assertEquals(Result.PASS, blocksize.apply(one));
    assertEquals(Result.PASS, blocksize.apply(two));
    assertEquals(Result.FAIL, blocksize.apply(three));
    assertEquals(Result.FAIL, blocksize.apply(four));
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.