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