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
パラメータ化テストのサンプルを追加。
master
1 parent
7551f1b
commit
535a76295433ef57f189a1e7dc6139bd1d054b90
yhornisse
authored
on 29 Dec 2019
Patch
Showing
2 changed files
src/main/java/com/sample/App4.java
src/test/java/com/sample/App4Test.java
Ignore Space
Show notes
View
src/main/java/com/sample/App4.java
0 → 100644
package com.sample; public class App4 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
Ignore Space
Show notes
View
src/test/java/com/sample/App4Test.java
0 → 100644
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