Code example for FileNotFoundException

Methods: getMessage

0
        "putfile", "/solr.xml", SOLR_HOME + File.separator + "not-there.xml"};
    try { 
      ZkCLI.main(args);
      fail("Should have had a file not found exception"); 
    } catch (FileNotFoundException fne) {
      String msg = fne.getMessage();
      assertTrue("Didn't find expected error message containing 'not-there.xml' in " + msg,
          msg.indexOf("not-there.xml") != -1);
    } 
  } 
 
  @Test
  public void testList() throws Exception {
    zkClient.makePath("/test", true);
    String[] args = new String[] {"-zkhost", zkServer.getZkAddress(), "-cmd",
        "list"}; 
    ZkCLI.main(args);
  } 
   
  @Test