개발/Spring
[IntelliJ] tdd 라이브 템플릿
윤호
2021. 8. 24. 11:39
1. preference에서 live template을 찾습니다.
2. 오른쪽에 +버튼을 누르고 Template Group을 Custom으로 추가합니다.
3. + 버튼으로 Custom 그룹에 Live template tdd를 추가합니다
4. 템플릿 코드를 입력합니다.
5. application context를 Java로 선택합니다.
코드는 다음과 같습니다
@Test
public void test(){
//given
//when
//then
}
자바파일에서 tdd를 입력하면 다음과 같이 템플릿이 생성됩니다.