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 String v1 = "hoge"; @DataPoint public static String v2 = "fuga"; @DataPoint public static String v3 = "piyo"; @Theory public void case1(String v) { System.out.println("case1: " + v); } @Theory public void case2(String v) { System.out.println("case2: " + v); } }