JUnit5 (1) 썸네일형 리스트형 JUnit5 JPA DB 테이블 1개 목록/상세/등록/수정/삭제 ※ Mybatis mapper 가 설정되어 있으면 참조를 하기 때문에, 세팅된 mapper 가 불필요 하면 disable 방법을 찾아 보는 것도.. JUnit 테스트 하는데 계속 에러가 나서 결국 포기했었는데, 나중에 확인해 보니 mapper 중 하나가 문제를 일으켰던... ㅠ. @Slf4j // lombok.extern.slf4j.* @SpringBootTest // org.springframework.boot.test.context.* public class ClassATests{ @Autowired // org.springframework.beans.factory.annotation.* ClassARepository caRepository; // interface 이기 때문에 스프링에게 생성을 맡기.. 이전 1 다음