michalborek / mockito-eclipse-tools

Eclipse plugin that simplifies test creation by providing refactorings for Mockito mocks.
7 stars 5 forks source link

Improper convert to recording when nested methods are invoked #19

Open michalborek opened 10 years ago

michalborek commented 10 years ago

Improperly converted statement:

bindingResolver.resolve(Mockito.any(AbstractTypeDeclaration.class)); 

becomes:

when(Mockito.any(AbstractTypeDeclaration.class)).thenReturn();

should be:

when( bindingResolver.resolve(Mockito.any(AbstractTypeDeclaration.class))).thenReturn();