|
16 | 16 | import java.util.List; |
17 | 17 |
|
18 | 18 | import org.junit.jupiter.api.AfterEach; |
19 | | -import org.junit.jupiter.api.Assertions; |
20 | 19 | import org.junit.jupiter.api.Test; |
21 | 20 |
|
22 | 21 | import reposense.model.AuthorBlurbMap; |
@@ -70,25 +69,6 @@ void generateReposReport_isOnlyTextRefreshedTrue_success() throws Exception { |
70 | 69 | assertTrue(compareFileContents(INTRO_MD_PATH, TEST_INTRO_MD_PATH)); |
71 | 70 | } |
72 | 71 |
|
73 | | - @Test |
74 | | - void generateReposReport_isOnlyTextRefreshedTrueButInvalidPath_throwsIoException() throws Exception { |
75 | | - ReportGenerator reportGenerator = new ReportGenerator(); |
76 | | - TimeUtil.startTimer(); |
77 | | - RepoBlurbMap repoBlurbMap = new RepoBlurbMap(); |
78 | | - repoBlurbMap.withRecord("https://github.com/reposense/testrepo-Delta/tree/master", "This is a test blurb"); |
79 | | - AuthorBlurbMap authorBlurbMap = new AuthorBlurbMap(); |
80 | | - ChartBlurbMap chartBlurbMap = new ChartBlurbMap(); |
81 | | - Assertions.assertThrows( |
82 | | - IOException.class, () -> reportGenerator.generateReposReport(List.of(), ASSETS_PATH.toString(), |
83 | | - ASSETS_PATH.toString(), new ReportConfiguration(), REPORT_GENERATED_TIME, |
84 | | - LocalDateTime.parse("2025-02-16T00:00:00", DateTimeFormatter.ofPattern(GITHUB_API_DATE_FORMAT)), |
85 | | - LocalDateTime.parse("2025-03-16T23:59:59", DateTimeFormatter.ofPattern(GITHUB_API_DATE_FORMAT)), |
86 | | - false, false, 4, 12, TimeUtil::getElapsedTime, |
87 | | - ZoneId.of("Asia/Singapore"), false, false, 0.51, |
88 | | - repoBlurbMap, authorBlurbMap, chartBlurbMap, false, true) |
89 | | - ); |
90 | | - } |
91 | | - |
92 | 72 | @AfterEach |
93 | 73 | void reset() throws IOException { |
94 | 74 | Files.copy(ORIGINAL_SUMMARY_JSON_PATH, SUMMARY_JSON_PATH, StandardCopyOption.REPLACE_EXISTING); |
|
0 commit comments