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
17c4d4a
commit
807d5f9390b3cab348dcf8c846d138546035a0bf
yhornisse
authored
on 29 Dec 2019
Patch
Showing
2 changed files
src/test/java/com/sample/App3Test.java
src/test/java/com/sample/App4Test.java
Ignore Space
Show notes
View
src/test/java/com/sample/App3Test.java
package com.sample; import org.junit.Test; 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.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); } }
Ignore Space
Show notes
View
src/test/java/com/sample/App4Test.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 App4Test { @DataPoints public static int[] v = {1, 2, 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.experimental.theories.DataPoints; import org.junit.runner.RunWith; @RunWith(Theories.class) public class App4Test { @DataPoints public static int[] v = {1, 2, 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