FastqStatsRunner { @NotNull @VisibleForTesting static File getBaseCallsDir(@NotNull final String dirPath) throws IOException { return getDir(dirPath + File.separator + "Data" + File.separator + "Intensities" + File.separator + "BaseCalls"); }  static void main(String[] args);  }
@Test public void getsCorrectBaseCallsDir() throws IOException { final File baseCallsDir = FastqStatsRunner.getBaseCallsDir(RUN_DIR_PATH); assertEquals(true, baseCallsDir.exists()); assertEquals(true, baseCallsDir.isDirectory()); assertEquals("BaseCalls", baseCallsDir.getName()); assertEquals("Intensities", baseCallsDir.getParentFile().getName()); assertEquals("Data", baseCallsDir.getParentFile().getParentFile().getName()); }
@Test(expected = IOException.class) public void getBaseCallsDirThrowsForNonExistentDir() throws IOException { FastqStatsRunner.getBaseCallsDir("Whoops"); }