Customer c = new Customer("David");
assertEquals("David", c.getName());
}
public void testStatementForRegularMovie() {
Customer customer2 = new Customer("Sallie");
Movie movie1 = new Movie("Gone with the Wind", Movie.REGULAR);
Rental rental1 = new Rental(movie1, 3); // 3 day rental
customer2.addRental(rental1);
String expected = "Rental Record for Sallie\n" +
"\tGone with the Wind\t3.5\n" +
"Amount owed is 3.5\n" +
"You earned 1 frequent renter points";
String statement = customer2.statement();
assertEquals(expected, statement);
}