@Test public void testUpdateCustomerContact() { // Must change the room number field to check if test passes or fails as // duplicate email addresses are not allowed // switch between assertFalse and assertTrue Assert.assertFalse( service.updateCustomerContact( "0766750472", "0217050230", "*****@*****.**", "0780797809")); }
@Test public void testGetAllCustomerContacts() { long count = repository.count(); customerContactList = service.getAllCustomerContacts(); Assert.assertTrue(customerContactList.size() == count); }