You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
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();
.......
Thanks and best regards,
bmiranda
The text was updated successfully, but these errors were encountered: