Skip to content

Commit ba9c1a8

Browse files
feat:the test passed for hashCodeTest
1 parent 04d0d80 commit ba9c1a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ void equals() {
9191
assertEquals(classUnderTest, otherAccount);
9292
}
9393

94-
// @Test
95-
// void hashCodeTest() {
96-
// SavingAccount otherAccount = new SavingAccount("123456789", owners, 200.0);
97-
// assertEquals(classUnderTest.hashCode(), otherAccount.hashCode());
98-
// }
94+
@Test
95+
void hashCodeTest() {
96+
SavingAccount otherAccount = new SavingAccount("123456789", owners, 200.0);
97+
assertEquals(classUnderTest.hashCode(), otherAccount.hashCode());
98+
}
9999

100100
// @Test
101101
// void toStringTest() {

0 commit comments

Comments
 (0)