1 package junitparams; 2 3 import static org.assertj.core.api.Assertions.assertThat; 4 5 import org.junit.*; 6 import org.junit.runner.*; 7 8 @RunWith(JUnitParamsRunner.class) 9 public class OverloadedTestMethodNameTest { 10 11 @Test 12 public void aTest() { 13 } 14 15 @Test 16 @Parameters({ "1", "2" }) 17 public void aTest(int number) { 18 assertThat(number).isIn(1, 2); 19 } 20 21 @Test 22 @Parameters({ "1,2" }) 23 public void aTest(int number1, int number2) { 24 assertThat(number1).isEqualTo(1); 25 assertThat(number2).isEqualTo(2); 26 } 27 } 28