GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
sample-java
/
sample-junit1
Browse code
import文の順番を微修正。
master
1 parent
417be4d
commit
17c4d4a583eb03d4843e12441210275044abe5c8
yhornisse
authored
on 29 Dec 2019
Patch
Showing
1 changed file
src/test/java/com/sample/App3Test.java
Ignore Space
Show notes
View
src/test/java/com/sample/App3Test.java
package com.sample; import org.junit.experimental.runners.Enclosed; import org.junit.experimental.theories.DataPoint; import org.junit.experimental.theories.Theories; import org.junit.experimental.theories.Theory; import org.junit.runner.RunWith; @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); } }
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); } }
Show line notes below