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
807d5f9
commit
37484e435377f468deaf5afc51be059ce42e8c2d
yhornisse
authored
on 29 Dec 2019
Patch
Showing
2 changed files
src/main/java/com/sample/App6.java
src/test/java/com/sample/App6Test.java
Ignore Space
Show notes
View
src/main/java/com/sample/App6.java
0 → 100644
package com.sample; public class App6 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
Ignore Space
Show notes
View
src/test/java/com/sample/App6Test.java
0 → 100644
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); } }
Show line notes below