1import org.junit.Test;2import org.junit.experimental.categories.Category;3import org.junit.runner.RunWith;4import org.junit.runners.Parameterized;5import org.junit.runners.Parameterized.Parameters;6import org.junit.runners.model.Annotatable;7import org.junit.runners.model.FrameworkMethod;8import org.junit.runners.model.TestClass;9import java.lang.annotation.Annotation;10import java.util.Arrays;11import java.util.Collection;12import java.util.List;13@RunWith(Parameterized.class)14public class ParameterizedTest {15 private int number;16 public ParameterizedTest(int number) {17 this.number = number;18 }19 public static Collection<Object[]> data() {20 Object[][] data = new Object[][] { { 1 }, { 2 }, { 3 }, { 4 }, { 5 }, { 6 }, { 7 } };21 return Arrays.asList(data);22 }23 public void test() {24 System.out.println("Parameterized Number is : " + number);25 }26 public static Collection<Object[]> primeNumbers() {27 return Arrays.asList(new Object[][] { { 2, true }, { 6, false }, { 19, true }, { 22, false }, { 23, true } });28 }29 public void testPrimeNumberChecker() {30 System.out.println("Parameterized Number is : " + number);31 assertEquals(expectedResult, primeNumberChecker.validate(number));32 }33 @Category(SlowTests.class)34 public void testPrimeNumberChecker() {35 System.out.println("Parameterized Number is : " + number);36 assertEquals(expectedResult, primeNumberChecker.validate(number));37 }38 public void testPrimeNumberChecker() {39 System.out.println("Parameterized Number is : " + number);40 assertEquals(expectedResult, primeNumberChecker.validate(number));41 }42 public void testPrimeNumberChecker() {43 System.out.println("Parameterized Number is : " + number);44 assertEquals(expectedResult, primeNumberChecker.validate(number));45 }46 public void testPrimeNumberChecker() {47 System.out.println("Parameterized Number is : " + number);48 assertEquals(expectedResult, primeNumberChecker.validate(number));49 }50 public void testPrimeNumberChecker() {