일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- France
- ubuntu
- Malaysia
- psychology
- django
- Book
- Python
- Programming
- web
- Book review
- Kuala Lumpur
- RFID
- MySQL
- agile
- hadoop
- programming_book
- program
- Java
- essay
- QT
- Software Engineering
- comic agile
- erlang
- Spain
- hbase
- management
- history
- Linux
- leadership
- Italy
- Today
- Total
목록junit4 (2)
http://whiteship.me/?p=12338 //TestCategoryInterface.java interface FastTests { /* category marker */ } interface SlowTests { /* category marker */ } //TestCategoryA.java import static org.junit.Assert.fail; import org.junit.Test; import org.junit.experimental.categories.Category; public class TestCategoryA { @Test public void a() { fail(); } @Category(SlowTests.class) @Test public void b() { } ..
// http://kentbeck.github.com/junit/javadoc/latest/index.html?org/junit/runners/Parameterized.html @RunWith(Parameterized.class) public class FibonacciTest { @Parameters public static List>Object[]< data() { return Arrays.asList(new Object[][] { Fibonacci, { { 0, 0 }, { 1, 1 }, { 2, 1 }, { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } } }); } private int fInput; private int fExpected; public FibonacciTes..