Beispiel #1
0
 // Test Customer constructor, getNumberofAccounts, and varargs
 @Test
 public void testThreeAcounts() {
   Customer oscar = new Customer("Oscar", new Savings(), new Checking(), new MaxiSavings());
   assertEquals(3, oscar.getNumberOfAccounts());
 }
Beispiel #2
0
 // Test Customer constructor, getNumberofAccounts, and varargs
 @Test
 public void testOneAccount() {
   Customer oscar = new Customer("Oscar", new Checking());
   assertEquals(1, oscar.getNumberOfAccounts());
 }