@@ -22,8 +22,8 @@ class BankAtmTest {
2222 @ BeforeEach
2323 void setUp () {
2424 classUnderTest = new BankAtm ();
25- customer1 = new Customer (UUID .randomUUID (), "John Doe" );
26- customer2 = new Customer (UUID .randomUUID (), "Jane Smith" );
25+ customer1 = new Customer (UUID .randomUUID (), "John Doe" , true );
26+ customer2 = new Customer (UUID .randomUUID (), "Jane Smith" , true );
2727 account1 = new CheckingAccount ("123456789" , Set .of (customer1 ), 100.0 );
2828 account2 = new CheckingAccount ("987654321" , Set .of (customer1 , customer2 ), 200.0 );
2929 customer1 .addAccount (account1 );
@@ -36,7 +36,7 @@ void setUp() {
3636 @ Test
3737 void testAddAccount () {
3838 // Arrange
39- Customer customer3 = new Customer (UUID .randomUUID (), "Alice Johnson" );
39+ Customer customer3 = new Customer (UUID .randomUUID (), "Alice Johnson" , true );
4040 CheckingAccount account3 = new CheckingAccount ("555555555" , Set .of (customer3 ), 300.0 );
4141 customer3 .addAccount (account3 );
4242
@@ -112,7 +112,7 @@ void testWithdrawFunds_AccountNotFound() {
112112 @ Test
113113 void testAddBusinessCheckingAccountWithoutBusinessAccount () {
114114 // Arrange
115- Customer businessOwner = new Customer (UUID .randomUUID (), "Business Owner" );
115+ Customer businessOwner = new Customer (UUID .randomUUID (), "Business Owner" , true );
116116 Set <Customer > owners = Set .of (businessOwner );
117117 BusinessCheckingAccount businessAccount = new BusinessCheckingAccount ("123456789" , owners , "Business Inc." , 1000.0 );
118118
@@ -125,7 +125,7 @@ void testAddBusinessCheckingAccountWithoutBusinessAccount() {
125125 @ Test
126126 void testGetBusinessName () {
127127 // Arrange
128- Customer businessOwner = new Customer (UUID .randomUUID (), "Business Owner" );
128+ Customer businessOwner = new Customer (UUID .randomUUID (), "Business Owner" , true );
129129 Set <Customer > owners = Set .of (businessOwner );
130130 BusinessCheckingAccount businessAccount = new BusinessCheckingAccount ("123456789" , owners , "Business Inc." , 1000.0 );
131131
0 commit comments