@Test
public void testWhenCorrectRequestPassedToUpdateCasaApplicationForIncomeUpdate() throws InvalidEventException {
when(requestMapper.map(getApplicationUpdateRequestForIncome())).thenReturn(getCasaApplicationData());
when(service.updateApplication(any())).thenReturn(getResultApplicationStatus());
when(responseMapper.updateMap(any())).thenReturn(getUpdationResponse());
Result<ApplicationUpdationResponse> response = casaApplicationHandler
.updateCasaApplication(getApplicationUpdateRequestForIncome());
assertNotNull(response);
assertTrue(response.isSuccess());
}
Asked
Active
Viewed 203 times
0

Mureinik
- 297,002
- 52
- 306
- 350

Shahnwaz Alam
- 23
- 1
- 1
- 6
-
Can you share the exact error you're getting? – Mureinik Dec 12 '20 at 08:38
-
Does this answer your question? [How to resolve Unneccessary Stubbing exception](https://stackoverflow.com/questions/42947613/how-to-resolve-unneccessary-stubbing-exception) – Joe Dec 12 '20 at 08:46
-
You can remove the particular stub – SSK Dec 15 '20 at 04:48