pom.xml -> junit , spring-test, hamcrest-all 최신버전으로 추가/수정
<!-- Test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.3.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
src/test/java 랑 src/test/resources 사용
Spring Framework의 Mock객체 사용
*org.slf4j.Logger : 로그 남길 때 사용
'개발 > Spring' 카테고리의 다른 글
빈 생명주기 콜백 (Bean LifeCycle Callback) (0) | 2022.12.27 |
---|---|
스프링에서 외부 환경 변수 정보 읽어오기 (Properties 파일) (0) | 2022.12.21 |
Eclipse에서 SPRING_Spring MVC 파일 설정 (0) | 2021.10.13 |
SPRING_AOP(Aspect-Oriented Programming) 관점 지향 프로그래밍 (0) | 2021.10.12 |
SPRING_빈(Bean) (0) | 2021.10.12 |