package com.sample; import org.junit.experimental.runners.Enclosed; import org.junit.experimental.theories.Theories; import org.junit.experimental.theories.Theory; import org.junit.runner.RunWith; import org.junit.experimental.theories.DataPoint; @RunWith(Theories.class) public class App3Test { @DataPoint public static int v1 = 1; @DataPoint public static int v2 = 2; @DataPoint public static int v3 = 3; @Theory public void case1(int v) { System.out.println("case1: " + v); } @Theory public void case2(int v) { System.out.println("case2: " + v); } }