/mockito-eclipse-tools

Eclipse plugin that simplifies test creation by providing refactorings for Mockito mocks.

Primary LanguageJava

mockito-eclipse-tools

Eclipse plugin that simplifies test creation by providing refactorings for Mockito mocks.

Features

  • Introduce a @Mock field from non-existing variable declaration
  • Introduce mock local variable from non-existing variable declaration
  • Adds @RunsWith(MockitoJunitRunner.class) when needed
  • Converts method invocation into mock recording (e.g. test.someMethod() -> when(test.someMethod()).thenReturn(<cursor_here>)).

TBD.

Screenshots

Downloads

Mockito Quick-Fix Tool in Alpha version is available via Eclipse Marketplace

http://marketplace.eclipse.org/content/mockito-quick-fix-tools

Continuous integration

Thanks to Travis CI for free CI instance