@Test public void testShouldSkipSuitesNotContainingExactMethodName() { Filter exactFilter = createMethodFilter( "#otherMethod" ); assertFalse( "should not run method", exactFilter.shouldRun( testMethod ) ); assertFalse( "should not run method", exactFilter.shouldRun( secondTestMethod ) ); Description suite = Description.createSuiteDescription( Suite.class ); suite.addChild( testMethod ); suite.addChild( secondTestMethod ); assertFalse( "should not run suites containing no matches", exactFilter.shouldRun( suite ) ); }
public Filter createMethodFilter( String requestedTestMethod ) { return new MethodFilter( requestedTestMethod ); }
FilterFactory { public Filter createMethodFilter( String requestedTestMethod ) { return new MethodFilter( requestedTestMethod ); } }
FilterFactory { public Filter createMethodFilter( String requestedTestMethod ) { return new MethodFilter( requestedTestMethod ); } FilterFactory( ClassLoader testClassLoader ); }
FilterFactory { public Filter createMethodFilter( String requestedTestMethod ) { return new MethodFilter( requestedTestMethod ); } FilterFactory( ClassLoader testClassLoader ); boolean canCreateGroupFilter( Map<String, String> providerProperties ); Filter createGroupFilter( Map<String, String> providerProperties ); Filter createMethodFilter( String requestedTestMethod ); Filter createMethodFilter( TestListResolver resolver ); Filter createMatchAnyDescriptionFilter( Iterable<Description> descriptions ); Filter and( Filter filter1, Filter filter2 ); }
FilterFactory { public Filter createMethodFilter( String requestedTestMethod ) { return new MethodFilter( requestedTestMethod ); } FilterFactory( ClassLoader testClassLoader ); boolean canCreateGroupFilter( Map<String, String> providerProperties ); Filter createGroupFilter( Map<String, String> providerProperties ); Filter createMethodFilter( String requestedTestMethod ); Filter createMethodFilter( TestListResolver resolver ); Filter createMatchAnyDescriptionFilter( Iterable<Description> descriptions ); Filter and( Filter filter1, Filter filter2 );  }