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