Skip to content

Commit

Permalink
test: README.md 생성 통합 테스트 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
PENEKhun committed Jan 19, 2024
1 parent 4cff537 commit e61b16d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/java/kr/huni/Integration/IntegrationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,21 @@ void applicationTest() {
// then
assertTrue(new File("p1000/src/Main.java").exists());
}

@Test
@DisplayName("프로그램에서 README.md 파일이 잘 생성된다.")
void Readme_generate_well() {
// given
BojStarter program = new BojStarter(
new FakeCodeOpen(),
new JavaSourceCodeFile(),
new JavaCodeGenerator(),
new BaekjoonProblemParser(new JsoupWebParser(1000)));

// when
program.run(1000);

// then
assertTrue(new File("p1000/src/README.md").exists());
}
}

0 comments on commit e61b16d

Please sign in to comment.