@Test public void testDirCreations() throws IOException, PluginException { FitNesse fitnesse = context.makeFitNesseContext().fitNesse; fitnesse.start(); try { assertTrue(new File("testFitnesseRoot").exists()); assertTrue(new File("testFitnesseRoot/files").exists()); } finally { fitnesse.stop(); } }
@Test public void testIsRunning() throws Exception { FitNesseContext context = FitNesseUtil.makeTestContext(); FitNesse fitnesse = context.fitNesse.dontMakeDirs(); assertFalse(fitnesse.isRunning()); fitnesse.start(); assertTrue(fitnesse.isRunning()); fitnesse.stop(); assertFalse(fitnesse.isRunning()); }