@@ -22,8 +22,8 @@ class BankAtmTest {
22
22
@ BeforeEach
23
23
void setUp () {
24
24
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 );
27
27
account1 = new CheckingAccount ("123456789" , Set .of (customer1 ), 100.0 );
28
28
account2 = new CheckingAccount ("987654321" , Set .of (customer1 , customer2 ), 200.0 );
29
29
customer1 .addAccount (account1 );
@@ -36,7 +36,7 @@ void setUp() {
36
36
@ Test
37
37
void testAddAccount () {
38
38
// Arrange
39
- Customer customer3 = new Customer (UUID .randomUUID (), "Alice Johnson" );
39
+ Customer customer3 = new Customer (UUID .randomUUID (), "Alice Johnson" , true );
40
40
CheckingAccount account3 = new CheckingAccount ("555555555" , Set .of (customer3 ), 300.0 );
41
41
customer3 .addAccount (account3 );
42
42
@@ -112,7 +112,7 @@ void testWithdrawFunds_AccountNotFound() {
112
112
@ Test
113
113
void testAddBusinessCheckingAccountWithoutBusinessAccount () {
114
114
// Arrange
115
- Customer businessOwner = new Customer (UUID .randomUUID (), "Business Owner" );
115
+ Customer businessOwner = new Customer (UUID .randomUUID (), "Business Owner" , true );
116
116
Set <Customer > owners = Set .of (businessOwner );
117
117
BusinessCheckingAccount businessAccount = new BusinessCheckingAccount ("123456789" , owners , "Business Inc." , 1000.0 );
118
118
@@ -125,7 +125,7 @@ void testAddBusinessCheckingAccountWithoutBusinessAccount() {
125
125
@ Test
126
126
void testGetBusinessName () {
127
127
// Arrange
128
- Customer businessOwner = new Customer (UUID .randomUUID (), "Business Owner" );
128
+ Customer businessOwner = new Customer (UUID .randomUUID (), "Business Owner" , true );
129
129
Set <Customer > owners = Set .of (businessOwner );
130
130
BusinessCheckingAccount businessAccount = new BusinessCheckingAccount ("123456789" , owners , "Business Inc." , 1000.0 );
131
131
0 commit comments