EhourHomeFinder { public static void fixEhourHome() throws IOException { convertBackwardSlashesInEhourHome(); setDefaultEhourHome(); defineDerbyHome(); } private  EhourHomeFinder(); static void fixEhourHome();  }
@Test public void shouldFixWindowsEhourHome() throws IOException { EhourHomeUtil.setEhourHome("src\\test\\resources"); EhourHomeFinder.fixEhourHome(); assertEquals("src/test/resources/home", EhourHomeUtil.getEhourHome()); }
@Test public void shouldFindEhourHome() throws IOException { EhourHomeUtil.setEhourHome("src/test/resources/home"); EhourHomeFinder.fixEhourHome(); assertEquals("src/test/resources/home", EhourHomeUtil.getEhourHome()); }
@Test public void shouldSetHomeSubdirAsHome() throws IOException { EhourHomeUtil.setEhourHome("src/test/resources"); EhourHomeFinder.fixEhourHome(); assertEquals("src/test/resources/home", EhourHomeUtil.getEhourHome()); }