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

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


    assertTrue(result.isPass());
    assertFalse(result.isDescend());
  }
  @Test
  public void combineFailStop() {
    Result result = Result.FAIL.combine(Result.STOP);
    assertFalse(result.isPass());
    assertFalse(result.isDescend());
  }
View Full Code Here


    assertFalse(result.isDescend());
  }
 
  @Test
  public void negatePass() {
    Result result = Result.PASS.negate();
    assertFalse(result.isPass());
    assertTrue(result.isDescend());
  }
View Full Code Here

    assertTrue(result.isDescend());
  }

  @Test
  public void negateFail() {
    Result result = Result.FAIL.negate();
    assertTrue(result.isPass());
    assertTrue(result.isDescend());
  }
View Full Code Here

    assertTrue(result.isPass());
    assertTrue(result.isDescend());
  }
  @Test
  public void negateStop() {
    Result result = Result.STOP.negate();
    assertFalse(result.isPass());
    assertFalse(result.isDescend());
  }
View Full Code Here

    assertFalse(result.isPass());
    assertFalse(result.isDescend());
  }
  @Test
  public void equalsPass() {
    Result one = Result.PASS;
    Result two = Result.PASS.combine(Result.PASS);
    assertEquals(one, two);
  }
View Full Code Here

    Result two = Result.PASS.combine(Result.PASS);
    assertEquals(one, two);
  }
  @Test
  public void equalsFail() {
    Result one = Result.FAIL;
    Result two = Result.FAIL.combine(Result.FAIL);
    assertEquals(one, two);
  }
View Full Code Here

    Result two = Result.FAIL.combine(Result.FAIL);
    assertEquals(one, two);
  }
  @Test
  public void equalsStop() {
    Result one = Result.STOP;
    Result two = Result.STOP.combine(Result.STOP);
    assertEquals(one, two);
  }
View Full Code Here

  @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

TOP

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

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.