package com.sample; import org.junit.experimental.runners.Enclosed; import org.junit.experimental.theories.Theories; import org.junit.experimental.theories.Theory; import org.junit.experimental.theories.DataPoints; import org.junit.runner.RunWith; @RunWith(Theories.class) public class App4Test { @DataPoints public static int[] v = {1, 2, 3}; @Theory public void case1(int v) { System.out.println("case1: " + v); } @Theory public void case2(int v) { System.out.println("case2: " + v); } }