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

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


public class TestResult extends TestExpression {

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


    assertTrue(result.isDescend());
  }

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

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

    assertFalse(result.isDescend());
  }

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

    assertTrue(result.isDescend());
  }

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

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

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

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

    assertFalse(result.isDescend());
  }

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

    assertFalse(result.isPass());
    assertFalse(result.isDescend());
  }
  @Test
  public void combineStopPass() {
    Result result = Result.STOP.combine(Result.PASS);
    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.