일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- netsh
- Source
- 단축키
- GIT
- port
- lsof
- tomcat
- web.xml
- Mac
- profile
- IntelliJ
- Eclipse
- import
- DB 도메인
- Windows
- maVen
- ssh
- bash
- context
- Windows 10
- 네트워크
- Quartz
- find
- copy-dependencies
- VirtualBox
- 공통표준용어
- grep
- JavaScript
- xargs
- resource
- Today
- Total
목록Dev/junit (26)
develog
spring 2.5 에서는 junit 4.4 버전 사용
package test; import org.junit.runner.RunWith;import org.junit.runners.Suite;import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class)@SuiteClasses({CalculatorTest.class, CalculatorTest2.class})public class AllTests {}
package test; import static org.junit.Assert.*; import java.util.Arrays;import java.util.Collection; import org.junit.Before;import org.junit.Test;import org.junit.runner.RunWith;import org.junit.runners.Parameterized;import org.junit.runners.Parameterized.Parameters; @RunWith(Parameterized.class)public class CalculatorTest {Calculator cal;private int num1;private int num2;public CalculatorTest(..
import static org.junit.Assert.*;import static org.hamcrest.CoreMatchers.*; @Testpublic void testGetName() { assertThat(user.getName(), is("aaa"));}
assertEqualsassertArrayEqualsassertNullassertNotNullassertSameassertNotSameassertTrueassertFalsefail