Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
junit [2021/02/07 03:54] – removed ledyxjunit [2021/02/07 05:50] (current) – old revision restored (2016/07/16 15:42) ledyx
Line 1: Line 1:
 += JUnit =
 +[[http://junit.org]]
 +
 +{{tag>Java TDD}}
 +
 += 기본 설정 =
 +class 상단에 기술.
 +
 +<sxh java>
 +@RunWith(SpringJUnit4ClassRunner.class)
 +@ContextConfiguration(locations ={"file:src/main/webapp/WEB-INF/spring/**/*.xml"})
 +</sxh>
 +
 += Test시 Method 순서 지정 =
 +class 상단에 기술.
 +
 +Method 이름 순서대로 Test.
 +<sxh java>
 +@FixMethodOrder(MethodSorters.NAME_ASCENDING)
 +</sxh>
 +
  
junit.1612670061.txt.gz · Last modified: by ledyx