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

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


    conf = fs.getConf();
  }
 
  @Test
  public void testPrint() throws IOException{
    Print print = new Print();
    PrintStream out = mock(PrintStream.class);
    FindOptions options = new FindOptions();
    options.setOut(out);
    print.initialise(options);
   
    String filename = "/one/two/test";
    PathData item = new PathData(filename, conf);
    assertEquals(Result.PASS, print.apply(item));
    verify(out).println(filename);
    verifyNoMoreInteractions(out);
  }
View Full Code Here

TOP

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

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.