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

Examples of org.apache.hadoop.fs.shell.find.Atime$Amin


  }

  @Test
  public void testExact() throws IOException {
    Atime atime = new Atime();
    addArgument(atime, "5");
   
    FindOptions options = new FindOptions();
    options.setStartTime(NOW);
    atime.initialise(options);
   
    assertEquals(Result.FAIL, atime.apply(fourDays));
    assertEquals(Result.FAIL, atime.apply(fiveDaysMinus));
    assertEquals(Result.PASS, atime.apply(fiveDays));
    assertEquals(Result.PASS, atime.apply(fiveDaysPlus));
    assertEquals(Result.FAIL, atime.apply(sixDays));
  }
View Full Code Here


    assertEquals(Result.FAIL, atime.apply(sixDays));
  }
 
  @Test
  public void testGreater() throws IOException {
    Atime atime = new Atime();
    addArgument(atime, "+5");

    FindOptions options = new FindOptions();
    options.setStartTime(NOW);
    atime.initialise(options);
    assertEquals(Result.FAIL, atime.apply(fourDays));
    assertEquals(Result.FAIL, atime.apply(fiveDaysMinus));
    assertEquals(Result.FAIL, atime.apply(fiveDays));
    assertEquals(Result.FAIL, atime.apply(fiveDaysPlus));
    assertEquals(Result.PASS, atime.apply(sixDays));
  }
View Full Code Here

    assertEquals(Result.PASS, atime.apply(sixDays));
  }

  @Test
  public void testLess() throws IOException {
    Atime atime = new Atime();
    addArgument(atime, "-5");
   
    FindOptions options = new FindOptions();
    options.setStartTime(NOW);
    atime.initialise(options);
    assertEquals(Result.PASS, atime.apply(fourDays));
    assertEquals(Result.PASS, atime.apply(fiveDaysMinus));
    assertEquals(Result.FAIL, atime.apply(fiveDays));
    assertEquals(Result.FAIL, atime.apply(fiveDaysPlus));
    assertEquals(Result.FAIL, atime.apply(sixDays));
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.fs.shell.find.Atime$Amin

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.