Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- tomcat
- profile
- bash
- Windows
- Source
- find
- GIT
- IntelliJ
- resource
- 공통표준용어
- context
- 단축키
- port
- maVen
- Windows 10
- Eclipse
- DB 도메인
- import
- xargs
- ssh
- JavaScript
- web.xml
- Quartz
- lsof
- copy-dependencies
- grep
- VirtualBox
- netsh
- Mac
- 네트워크
Archives
- Today
- Total
develog
JUnit 본문
JUnit 4 이전, TestCase 작성방법
- TestCase 클래스 상속 필수
- 테스트 메소드 이름은 항상 test 로 시작
public class MathUtilTest extends TestCase {
public void testMultiply() throws Exception {
}
}
JUnit 4, Test Case 작성방법
- TestCase 클래스 상속할 필요 없음
- 테스트 메소드 이름을 test 로 시작할 필요없음
- 테스트 메소드에 @Test 어노테이션만 추가
public class MathUtilTest {
@Test
public void verifyMultiply() {
}
}
'Dev > junit' 카테고리의 다른 글
JUnit Parameterized Test (0) | 2012.12.02 |
---|---|
JUnit4 hamcrest (0) | 2012.11.28 |
JUnit 4 Assert (0) | 2012.11.07 |
[junit] JUnit 4 Annotations (0) | 2012.11.07 |
JUnit 테스트 메소드 종류 (0) | 2012.04.30 |
Comments