Skip to content

Commit d8ebfc0

Browse files
author
AmiyahJo
committed
rm: testCreateCheckingWIthoutBusinessAccount
1 parent fd08860 commit d8ebfc0

File tree

1 file changed

+0
-13
lines changed
  • lesson_17/bank/bank_app/src/test/java/com/codedifferently/lesson17/bank

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,6 @@ void testWithdrawFunds_AccountNotFound() {
109109
.withMessage("Account not found");
110110
}
111111

112-
@Test
113-
void testAddBusinessCheckingAccountWithoutBusinessAccount() {
114-
// Arrange
115-
Customer businessOwner = new Customer(UUID.randomUUID(), "Business Owner", true);
116-
Set<Customer> owners = Set.of(businessOwner);
117-
BusinessCheckingAccount businessAccount = new BusinessCheckingAccount("123456789", owners, "Business Inc.", 1000.0);
118-
119-
// Act & Assert
120-
assertThatExceptionOfType(IllegalArgumentException.class)
121-
.isThrownBy(() -> classUnderTest.addAccount(businessAccount))
122-
.withMessage("At least one owning account must be a business account.");
123-
}
124-
125112
@Test
126113
void testGetBusinessName() {
127114
// Arrange

0 commit comments

Comments
 (0)