Closed hprange closed 3 years ago
Depending on the Mockito version, the MockitoJUnitRunner evaluation may not run before evaluating the WOUnit rule. As a result, fields annotated with @Spy may be null at WOUnit initialization. This fix creates and spies objects preventing an error.
@Spy
Depending on the Mockito version, the MockitoJUnitRunner evaluation may not run before evaluating the WOUnit rule. As a result, fields annotated with
@Spy
may be null at WOUnit initialization. This fix creates and spies objects preventing an error.