Newer
Older
sample-junit1 / src / test / java / com / sample / App6Test.java
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 App6Test {
    @DataPoints
    public static int[] v1 = {1, 2, 3};
    @DataPoints
    public static String[] v2 = {"hoge", "fuga"};

    @Theory
    public void case1(int v, String s)
    {
        System.out.println("case1: " + v + ", " + s);
    }

    @Theory
    public void case2(int v, String s)
    {
        System.out.println("case2: " + v + ", " + s);
    }
}