설정

스프링부트에서는 spring-boot-starter-test를 추가합니다.

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-test</artifactId>
	<scope>test</scope>
</dependency>

spring-boot-starter-test 는 아래 라이브러리들을 자동으로 불러옵니다.

라이브러리의 사용법이 알고 싶으시다면 링크를 확인하시기 바랍니다.

1. 단위 테스트

Domain

class User {
	private String name;
	private String password;

	public User(String name, String password) {
		this.name = name;
		this.password = password;
	}
}