/** * This tests the cashier under very simple terms: one customer is ready to pay the exact bill. */ public void testInitializationTest() { // tests to ensure Cashier is constructed properly //CHANGE // customer1.cashier = cashier;//You can do almost anything in a unit test. // check preconditions assertEquals( "Cashier should have 0 customers in it. It doesn't.", cashier.getMyCustomers().size(), 0); assertEquals("Cashier did not start with 500 money", cashier.getMoney(), 500.0); // CHANGE assertEquals("marketPayments list did not start empty", cashier.getMarketPayments().size(), 0); assertEquals("myCustomers list did not start at size zero", cashier.getMyCustomers().size(), 0); assertEquals("menuMap did not start with 4 items in it", cashier.getPriceMenu().size(), 4); }