Search in sources :

Example 1 with MockitoJUnitRunner

use of org.mockito.junit.MockitoJUnitRunner in project mockito by mockito.

the class JUnit45RunnerTest method shouldFilterTestMethodsCorrectly.

@Test
public void shouldFilterTestMethodsCorrectly() throws Exception {
    MockitoJUnitRunner runner = new MockitoJUnitRunner(this.getClass());
    runner.filter(methodNameContains("shouldInitMocksUsingRunner"));
    assertEquals(1, runner.testCount());
}
Also used : MockitoJUnitRunner(org.mockito.junit.MockitoJUnitRunner) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 MockitoJUnitRunner (org.mockito.junit.MockitoJUnitRunner)1