示例#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);
  }