use of org.mifos.dto.domain.ClientMfiInfoUpdate in project head by mifos.
the class ClientUpdateTest method clientMfiDetailsAreUpdated.
@Test
public void clientMfiDetailsAreUpdated() throws Exception {
// setup
UserContext userContext = TestUtils.makeUser();
ClientMfiInfoUpdate clientMfiInfoUpdate = new ClientMfiInfoUpdateBuilder().build();
// stubbing
when(customerDao.findCustomerById(clientMfiInfoUpdate.getClientId())).thenReturn(mockedClient);
when(personnelDao.findPersonnelById(clientMfiInfoUpdate.getPersonnelId())).thenReturn(personnel);
// exercise test
customerService.updateClientMfiInfo(userContext, clientMfiInfoUpdate);
// verification
verify(mockedClient).updateMfiInfo(personnel, clientMfiInfoUpdate);
}
Aggregations