質問編集履歴
3
JUnitの記載バージョン間違い修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,6 +98,10 @@
|
|
98
98
|
|
99
99
|
### 補足情報(FW/ツールのバージョンなど)
|
100
100
|
|
101
|
+
~~ JUnit4 ~~
|
102
|
+
|
101
|
-
JUnit
|
103
|
+
JUnit5
|
104
|
+
|
105
|
+
|
102
106
|
|
103
107
|
Intellij Idea
|
2
パッケージのインポート文追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,6 +25,34 @@
|
|
25
25
|
|
26
26
|
|
27
27
|
```Java
|
28
|
+
|
29
|
+
package agent;
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
import org.junit.Before;
|
34
|
+
|
35
|
+
import org.junit.jupiter.api.Test;
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
import java.util.ArrayList;
|
40
|
+
|
41
|
+
import java.util.List;
|
42
|
+
|
43
|
+
import myUtil.myRandom;
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
import static org.hamcrest.CoreMatchers.is;
|
48
|
+
|
49
|
+
import static org.hamcrest.MatcherAssert.assertThat;
|
50
|
+
|
51
|
+
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
52
|
+
|
53
|
+
import static constants.EnvironmentalConstants.*;
|
54
|
+
|
55
|
+
|
28
56
|
|
29
57
|
public class AgentTest {
|
30
58
|
|
1
ソースコードに①-1追加.補足情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,11 +40,13 @@
|
|
40
40
|
|
41
41
|
public void setUp(){
|
42
42
|
|
43
|
+
System.out.println("Before"); //①-1
|
44
|
+
|
43
45
|
myRandom.setRand(1000000009);
|
44
46
|
|
45
47
|
this.agents = Agent.lGenerateAgents(agentNum);
|
46
48
|
|
47
|
-
System.out.println("Before: " + agents.size()); //①
|
49
|
+
System.out.println("Before: " + agents.size()); //①-2
|
48
50
|
|
49
51
|
}
|
50
52
|
|
@@ -69,3 +71,5 @@
|
|
69
71
|
### 補足情報(FW/ツールのバージョンなど)
|
70
72
|
|
71
73
|
JUnit4
|
74
|
+
|
75
|
+
Intellij Idea
|