일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- RFID
- erlang
- Kuala Lumpur
- leadership
- program
- agile
- MySQL
- django
- Spain
- France
- programming_book
- comic agile
- Software Engineering
- hbase
- hadoop
- ubuntu
- web
- management and leadership
- management
- Programming
- QT
- UK
- Java
- Book
- history
- Book review
- Python
- Linux
- Malaysia
- 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..