Leon Hunter 5 år sedan
förälder
incheckning
f7b432d371

+ 3
- 3
src/test/java/rocks/zipcode/quiz3a/objectorientation/bankaccount/DepositTest.java Visa fil

@@ -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