| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- Source
- plugin
- lsof
- import
- context
- JavaScript
- GIT
- IntelliJ
- maVen
- find
- 네트워크
- ssh
- tomcat
- port
- netsh
- xargs
- Eclipse
- 줄바꿈 문자
- web.xml
- bash
- resource
- 단축키
- Quartz
- profile
- Windows 10
- Mac
- vscode
- grep
- VirtualBox
- Windows
- 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