사용자 도구

사이트 도구


java:assertj

문서의 이전 판입니다!


AssertJ

IntelliJ Live Template for try/catch

  • abbrevication : trytestassertj
  • Reformat according to Style : check
  • Use static import if possible : check
  • Shorten FQ names : check
  • Applicable in Java: statement
  • Template text :
    try {
        org.assertj.core.api.Assertions.failBecauseExceptionWasNotThrown($ExceptionClass$.class);
    } catch ($ExceptionClass$ ex) {
        org.assertj.core.api.Assertions.assertThat(ex).hasMessage("");
    }

기존 JUnit assert를 AssertJ로 변경하기

assertj-json

참고

java/assertj.1597239835.txt.gz · 마지막으로 수정됨: 2020/08/12 22:43 저자 kwon37xi