사용자 도구

사이트 도구


java:junit

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
마지막 판 양쪽 다음 판
java:junit [2015/11/17 09:15]
kwon37xi
java:junit [2015/11/21 12:56]
kwon37xi
줄 53: 줄 53:
   * 테스트 클래스에 ''@FixMethodOrder(MethodSorters.NAME_ASCENDING)'' 형태로 설정하여 테스트 메소드 실행 순서를 보정할 수 있다.   * 테스트 클래스에 ''@FixMethodOrder(MethodSorters.NAME_ASCENDING)'' 형태로 설정하여 테스트 메소드 실행 순서를 보정할 수 있다.
   * [[http://examples.javacodegeeks.com/core-java/junit/junit-test-order-example/|JUnit Test Order Example]]   * [[http://examples.javacodegeeks.com/core-java/junit/junit-test-order-example/|JUnit Test Order Example]]
 +
 +===== IntelliJ Live Template for try/catch JUnit/Hamcrest=====
 +  * abbrevication : ''trytestjunit''
 +  * ''Reformat according to Style'' : check
 +  * ''Use static import if possible'' : check
 +  * ''Shorten FQ names'' : check
 +  * ''Applicable in Java: statement''
 +  * Template text : <code java>
 +try {
 +    org.junit.Assert.fail("Must throw an exception");
 +} catch ($EXCEPTION$ ex) {
 +    org.junit.Assert.assertThat("Must throw an exception",
 + ex.getMessage(), org.hamcrest.CoreMatchers.containsString("$MESSAGE$"));
 +}
 +</code>
 +
 ===== Plugins ===== ===== Plugins =====
   * [[https://github.com/pholser/junit-quickcheck|jUnit QuickCheck]]    * [[https://github.com/pholser/junit-quickcheck|jUnit QuickCheck]] 
  
java/junit.txt · 마지막으로 수정됨: 2015/11/21 13:26 저자 kwon37xi