Skip to content

Commit e6b496d

Browse files
committed
feat: adds unit test for business account inheritance
1 parent f1616d4 commit e6b496d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,10 @@ void testBusinessCheckingAccountEquals() {
9898
BusinessCheckingAccount otherAccount = new BusinessCheckingAccount("BIZ123456", businessOwners, 2000.0);
9999
assertEquals(classUnderTest, otherAccount);
100100
}
101-
101+
102+
@Test
103+
void testBusinessCheckingAccountInheritance() {
104+
// Verify it inherits all CheckingAccount functionality
105+
assertTrue(classUnderTest instanceof CheckingAccount);
106+
}
102107
}

0 commit comments

Comments
 (0)