package com.sample;
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 App7Test {
static class Fixture {
int i;
String s;
Fixture(int i, String s) {
this.i = i;
this.s = s;
}
}
@DataPoints
public static Fixture[] v = {
new Fixture(1, "hoge"),
new Fixture(2, "fuga"),
new Fixture(3, "piyo")
};
@Theory
public void case1(Fixture f)
{
System.out.println("case1: " + f.i + ", " + f.s);
}
}