Code example for FileNotFoundException

Methods: getMessage

0"Test Target Delete For listStatus");
    try { 
      fail("Test should fail with FileNotFoundException"); 
    } catch (FileNotFoundException e) {
      assertEquals("File " + TEST_PATH + " does not exist.", e.getMessage());;
  /** Remove the target directory after the getListing RPC */ 
  public void testTargetDeletionForListLocatedStatus() throws Exception {"Test Target Delete For listLocatedStatus");
    RemoteIterator<LocatedFileStatus> itor = fs.listLocatedStatus(TEST_PATH);;
    assertFalse (itor.hasNext());
Contextual code suggestions in your IDE  Get Codota for Java