corporateCustomer = customerService.getCustomerById(id);
}
@Test
public void updateCorporateCustomerTest() {
Customer corporateCustomer = new CorporateCustomer();
corporateCustomer = customerService.getCustomerById((long) 9);
corporateCustomer.setApartment((short) 10);
corporateCustomer.setCity("TestCorp");
corporateCustomer.setCountry("TestCorp");
corporateCustomer.setEmail("testCorp@email.com");
corporateCustomer.setHouse((short) 3);
corporateCustomer.setHousing(null);
corporateCustomer.setName("TestCorp");
corporateCustomer.setPassword("TESTCorp");
corporateCustomer.setPatronymic("TestovichCorp");
corporateCustomer.setPhone("5345399");
corporateCustomer.setProvince("TestCorp");
corporateCustomer.setRole(EUserRole.CUSTOMER);
corporateCustomer.setStreet("TestCorp");
corporateCustomer.setSurname("TestovCorp");
corporateCustomer.setZip("223744");
corporateCustomer = customerService.updateCustomer(corporateCustomer);
}