@Test public void testGetMostRecentJson() throws IOException { File result = testee.getMostRecentJson(concept); Path path_result = result.toPath(); assertThat(path_result, is(equalTo(tmpDir.resolve(DataItems.DIR_FILE_2030.getFile())))); }
@Theory public void testParseDate(TestData data) { try { assertThat(testee.parseDate(data.getFile()), is(equalTo(data.getExpectedDate()))); } catch (Exception ex) { ex.printStackTrace(System.err); throw ex; } }
@Test public void testMostRecentFile() { try { assertThat( testee.getMostRecent(filesInTestDir), is(equalTo(DataItems.DIR_FILE_2030.getFile()))); } catch (Exception ex) { ex.printStackTrace(System.err); throw ex; } }
@Test public void testCreateJsonFile() throws IOException { File testFile = testee.createJsonResultsFile(concept); assertCanCreateWritableFile(testFile); }
@Test public void testCreateHtmlFile() throws IOException { File testFile = testee.createHtmlResultsFile(); assertCanCreateWritableFile(testFile); }