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
37484e4
commit
ffaaf971a290ddd5d3bee42626ece72bec2df260
yhornisse
authored
on 29 Dec 2019
Patch
Showing
2 changed files
src/main/java/com/sample/App7.java
src/test/java/com/sample/App7Test.java
Ignore Space
Show notes
View
src/main/java/com/sample/App7.java
0 → 100644
package com.sample; public class App7 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
Ignore Space
Show notes
View
src/test/java/com/sample/App7Test.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 App7Test { static class Fixture { int i; String s; Fixture(int i, String s) { this.i = i; this.s = s; } } @DataPoints public static Fixture[] v = { new Fixture(1, "hoge"), new Fixture(2, "fuga"), new Fixture(3, "piyo") }; @Theory public void case1(Fixture f) { System.out.println("case1: " + f.i + ", " + f.s); } }
Show line notes below