Skip to content

Instantly share code, notes, and snippets.

@ksundong
Created May 30, 2020 03:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksundong/63041969b117f4d335f596815b54791a to your computer and use it in GitHub Desktop.
Save ksundong/63041969b117f4d335f596815b54791a to your computer and use it in GitHub Desktop.
IntelliJ test 메소드 Live Template 만들기

IntelliJ Test Live Template 만들기

live-template

variables

이렇게 해주면 실패하는 test method를 만들어 줄 수 있다.

그리고, BODY 부분만 수정해주면, assertJ로 변환도 가능하다.

@org.junit.jupiter.api.Test
@org.junit.jupiter.api.DisplayName("$TEST_NAME$")
void $METHOD_NAME$() {
    $BODY$
}

Reformat according to style를 체크해주면, code style에 맞게 알아서 정렬이 된다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment