웹/Spring
@Before 실행 안될때
컴퓨터과학
2022. 7. 12. 21:11
https://stackoverflow.com/questions/10580613/after-before-not-working-in-testcase
@After ,@before not working in testcase
I have started testing and now i want to use @After, @Before and @Test but my application only runs the @Before method and gives output on console before However, if I remove @After and @Before...
stackoverflow.com
junit5에선 @Before 대신에 @BeforeEach를 사용하라고 하네요
@After 대신에 @AfterEach 사용하라고 하네요
저도 개발중에 @Before 가 안되서 @BeforeEach를 사용했네요 ㅎㅎ