예제 #1
0
  @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()))));
  }
예제 #2
0
 @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;
   }
 }
예제 #3
0
 @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;
   }
 }
예제 #4
0
  @Test
  public void testCreateJsonFile() throws IOException {
    File testFile = testee.createJsonResultsFile(concept);

    assertCanCreateWritableFile(testFile);
  }
예제 #5
0
  @Test
  public void testCreateHtmlFile() throws IOException {
    File testFile = testee.createHtmlResultsFile();

    assertCanCreateWritableFile(testFile);
  }