-
@BeforeEachSpring 2023. 1. 30. 12:56
- 테스트시에 메서드마다 Repository가 초기화되도록 하는 어노테이션
@BeforeEach void clean(){ boardRepository.deleteAll(); }
'Spring' 카테고리의 다른 글
AnnotationProcessor (0) 2023.03.15 @PathVariable (0) 2023.01.30 @SpringBootTest (0) 2023.01.30 @Autowired (0) 2023.01.30 entity와 Dto의 차이 (0) 2022.12.23