A Guide to JUnit 5
1. 개요
2. 구조
JUnit Platform
JUnit Jupiter
JUnit Vantage
3. 기본 어노테이션
@BeforeAll 및 @BeforeEach
@BeforeAll
@BeforeAll 실행 시 static 메서드만 사용할 수 있는 이유
JUnit 실행 방식
그렇다면 문제는?
해결방법 : static 메서드 사용
@BeforeEach
@DisplayName 및 @Disabled
@DisplayName
@Disabled
@AfterAll @AfterEach
@AfterAll
@AfterEach
4.
5. 예외 테스트
Last updated