Skip to content

Commit 95e46bd

Browse files
committed
test(recruit-board): 도메인 로직 메서드 변경에 따른 테스트 및 부적절한 테스트 제거
1 parent 72d09fa commit 95e46bd

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/test/java/com/somemore/recruitboard/domain/RecruitBoardTest.java

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static com.somemore.common.fixture.LocalDateTimeFixture.createCurrentDateTime;
44
import static com.somemore.common.fixture.LocalDateTimeFixture.createStartDateTime;
55
import static com.somemore.common.fixture.LocalDateTimeFixture.createUpdateStartDateTime;
6-
import static com.somemore.common.fixture.RecruitBoardFixture.createCloseRecruitBoard;
76
import static com.somemore.common.fixture.RecruitBoardFixture.createRecruitBoard;
87
import static com.somemore.recruitboard.domain.RecruitStatus.CLOSED;
98
import static com.somemore.recruitboard.domain.RecruitStatus.COMPLETED;
@@ -192,29 +191,17 @@ void changeStatusWhenDeadLineAfter(Long secondsOffset) {
192191

193192
}
194193

195-
@DisplayName("모집중일 경우 지원이 가능하다")
194+
@DisplayName("모집중일 경우 True 반환한다.")
196195
@Test
197-
void isApplicationOpen() {
196+
void isRecruitOpen() {
198197
// given
199198
RecruitBoard board = createRecruitBoard();
200199

201200
// when
202-
boolean result = board.isApplicationOpen();
201+
boolean result = board.isRecruitOpen();
203202

204203
// then
205204
assertThat(result).isTrue();
206205
}
207206

208-
@DisplayName("모집중이 아닐 경우 지원이 불가능하다")
209-
@Test
210-
void isApplicationOpenWhenNotRECRUTING() {
211-
// given
212-
RecruitBoard board = createCloseRecruitBoard();
213-
214-
// when
215-
boolean result = board.isApplicationOpen();
216-
217-
// then
218-
assertThat(result).isFalse();
219-
}
220207
}

0 commit comments

Comments
 (0)