Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Mockito #61

Open
bmiranda84 opened this issue Jul 6, 2021 · 0 comments
Open

Support for Mockito #61

bmiranda84 opened this issue Jul 6, 2021 · 0 comments

Comments

@bmiranda84
Copy link

Hello noconnor,

When JUnitPerfRule is used together with Mockito (annotation @RunWith(MockitoJUnitRunner.class)), the mock objects defined on the test are not used anymore, and real objects are used instead. It's like JUnitPerfRule enforces the usage of real objects.

Could you please add support for Mockito?

e.g.

@RunWith(org.mockito.junit.MockitoJUnitRunner.class)
public class TestCase
{
@rule
public JUnitPerfRule perfTestRule = new JUnitPerfRule();

  @InjectMocks
  ClassToMock mock;

  @Spy
  Factory partialMock;

.......

Thanks and best regards,
bmiranda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant