Leon Hunter преди 5 години
родител
ревизия
f7b432d371
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3
    3
      src/test/java/rocks/zipcode/quiz3a/objectorientation/bankaccount/DepositTest.java

+ 3
- 3
src/test/java/rocks/zipcode/quiz3a/objectorientation/bankaccount/DepositTest.java Целия файл

@@ -28,14 +28,14 @@ public class DepositTest {
28 28
         test(10.0, 50.0);
29 29
     }
30 30
 
31
-    public void test(Double initialBalance, Double withdrawalAmount) {
31
+    public void test(Double initialBalance, Double witdrawalAmount) {
32 32
         // given
33
-        Double expected = initialBalance + withdrawalAmount;
33
+        Double expected = initialBalance + witdrawalAmount;
34 34
         BankAccount bankAccount = new BankAccount();
35 35
         bankAccount.setBalance(initialBalance);
36 36
 
37 37
         // when
38
-        bankAccount.withdrawal(withdrawalAmount);
38
+        bankAccount.deposit(witdrawalAmount);
39 39
         Double actual = bankAccount.getBalance();
40 40
 
41 41
         // then