@Test public void testTEBASEnotfound() { File tebase = new File(classp, "xyzzxsyss"); ConfigFileCreator configFileCreator = new ConfigFileCreator(); try { configFileCreator.create(tebase); } catch (TEException e) { assertEquals("com.occamlab.te.web.TEBaseNotFoundException", e.getClass().getName()); return; } fail("it should throw aTEBaseNotFoundException Exception"); }
public void create(String tebase) throws TEException { File f = new File(tebase); if (f.exists()) { try { process(tebase); } catch (Exception e) { e.printStackTrace(); } } else { throw new TEBaseNotFoundException(tebase); } }
ConfigFileCreator { public void create(String tebase) throws TEException { File f = new File(tebase); if (f.exists()) { try { process(tebase); } catch (Exception e) { e.printStackTrace(); } } else { throw new TEBaseNotFoundException(tebase); } } }
ConfigFileCreator { public void create(String tebase) throws TEException { File f = new File(tebase); if (f.exists()) { try { process(tebase); } catch (Exception e) { e.printStackTrace(); } } else { throw new TEBaseNotFoundException(tebase); } } ConfigFileCreator(); }
ConfigFileCreator { public void create(String tebase) throws TEException { File f = new File(tebase); if (f.exists()) { try { process(tebase); } catch (Exception e) { e.printStackTrace(); } } else { throw new TEBaseNotFoundException(tebase); } } ConfigFileCreator(); void create(String tebase); void create(File tebase); void processDir(File dir); void saveConfigFile(Document docMain, String mainconfig); Document getDocument(File xml); }
ConfigFileCreator { public void create(String tebase) throws TEException { File f = new File(tebase); if (f.exists()) { try { process(tebase); } catch (Exception e) { e.printStackTrace(); } } else { throw new TEBaseNotFoundException(tebase); } } ConfigFileCreator(); void create(String tebase); void create(File tebase); void processDir(File dir); void saveConfigFile(Document docMain, String mainconfig); Document getDocument(File xml);  }