質問編集履歴
2
画像
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
junit4をeclipseで使いたくて、コードにAssertionErrorが出ます。なぜなのでしょうか?
|
1
|
+
![![イメージ説明](19e89c25e2749a50d08cf58d01274607.png)](9d9eeb542864e9d78a5a7ad82396bf05.png)junit4をeclipseで使いたくて、コードにAssertionErrorが出ます。なぜなのでしょうか?
|
2
2
|
|
3
3
|
```java
|
4
4
|
|
1
変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
junit4をeclipseで使いたくて、
|
1
|
+
junit4をeclipseで使いたくて、コードにAssertionErrorが出ます。なぜなのでしょうか?
|
test
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
junit4をeclipseで使いたくて、
|
1
|
+
junit4をeclipseで使いたくて、コードにAssertionErrorが出ます。なぜなのでしょうか?
|
2
|
-
|
3
|
-
|
4
2
|
|
5
3
|
```java
|
6
4
|
|
@@ -10,7 +8,7 @@
|
|
10
8
|
|
11
9
|
int balance;
|
12
10
|
|
13
|
-
public
|
11
|
+
public Account(String owner,int balance){
|
14
12
|
|
15
13
|
owner=owner;
|
16
14
|
|
@@ -66,6 +64,4 @@
|
|
66
64
|
|
67
65
|
```
|
68
66
|
|
69
|
-
AccountTestaのクラスの7行目のnew Account("ミナト",30000)にコンパイルエラーが出ます。(The constructor Account(String, int) is undefined)
|
70
|
-
|
71
|
-
|
67
|
+
どうぞよろしくお願いします。
|