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