-
What is difference thing between 'junit-vintage-engine' and 'junit-jupiter-engine'Backend/SPRING 2022. 5. 31. 19:07
요세 Junit4에서 작성하던 테스트 코드를 Junit5에서 작성하고 있는데요.
vintage-engine 관련된 의존성을 삽입해서 테스트 하다가 오류가 나서 이것저것 찾아보니, junit5는 jupiter engine 기반으로 돌아가더라구요....
말나온 김에 차이점을 말씀드려보면
1.junit-vintage-engine
(1) junit4 테스팅을 위해 사용됨
(2) core class 혹은 annotation 들이 호출되는 방식으로 사용됨
(3) @Ignore, @Before, etc와 같은 annotation들이 쓰임
2.junit-jupiter-engine
(1) junit5 테스팅을 위해 사용됨
(2) 테스트에 필요한 기능들을 제공하는 api를 호출하는 방식으로 사용됨
(3) @Disable, @BeforeAll, @BeforeEach와 같이 annotation의 이름이 바뀌었음
참고한 Stackoverflow 주소 첨부해놓을게요.
https://stackoverflow.com/a/59197712
Difference between junit-vintage-engine and junit-jupiter-engine?
It's a two-fold question. What is the difference between junit-vintage-engine and junit-jupiter-engine? SpringBoot starter projects come with an exclusion for junit-vintage-engine. Is it to enfor...
stackoverflow.com
'Backend > SPRING' 카테고리의 다른 글