import static org.junit.Assert.*; import java.util.Arrays; @RunWith(Parameterized.class) public static class SimpeMath { int a, b, expected; public SimpleMathTest(int a, int b, int expected) { @Parameters Object[][] data = new Object[][] { @Test } |
you will see 3 passed, one failed when you run the test.
No comments:
Post a Comment