Skip to content

Commit 9d103d6

Browse files
committed
adds BusinessCheckingAccount Tests
1 parent 6b5f89f commit 9d103d6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.codedifferently.lesson17.bank;
2+
3+
import static org.assertj.core.api.Assertions.assertThat;
4+
5+
import java.util.HashSet;
6+
import java.util.Set;
7+
import java.util.UUID;
8+
9+
import org.junit.jupiter.api.Test;
10+
11+
public class BusinessCheckingAccountTest {
12+
13+
@Test
14+
void validateBusinessOwner_withBusinessOwner() {
15+
Set<Customer> owners = new HashSet<>();
16+
owners.add(new Customer(UUID.randomUUID(), "Elon Musk", CustomerType.BUSINESS));
17+
owners.add(new Customer(UUID.randomUUID(), "Elon Musk", CustomerType.BUSINESS));
18+
19+
BusinessCheckingAccount account = new BusinessCheckingAccount("123456789", owners, 1000.0);
20+
assertThat(account).isNotNull();
21+
}
22+
}

0 commit comments

Comments
 (0)