-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
2.4
Eg. CustomDataMapPointGeneratorTest and CustomDataPointGeneratorTest fail to compile with
The method thenReturn(capture#5-of ?) in the type OngoingStubbing<capture#5-of ?> is not applicable for the arguments (Job)
Apparently the Job mock does not match the expected types.
The fix is actually really simple, just use the type-unsafe doReturn on the Job mock. Like so:
Mockito.doReturn(job).when(build).getParent();
Don't have the time to go through a pull request myself, unfortunately.