Skip to content

Commit bb54a4d

Browse files
author
AmiyahJo
committed
fix: withdraw_withNegativeAMount thrownby
removes ';' so the 'withMessage' adds onto the withdraw action
1 parent 9a1f465 commit bb54a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lesson_17/bank/bank_app/src/test/java/com/codedifferently/lesson17/bank/SavingsAccountTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void deposit() {
5151
@Test
5252
void deposit_withNegativeAmount() {
5353
assertThatExceptionOfType(IllegalArgumentException.class)
54-
.isThrownBy(() -> classUnderTest.deposit(-50.0));
54+
.isThrownBy(() -> classUnderTest.deposit(-50.0))
5555
.withMessage("Deposit amount must be positive");
5656
}
5757

0 commit comments

Comments
 (0)