@Test public void testShouldMatchNestedClassAsRegexWithMethod() { Filter exactFilter = createMethodFilter( "%regex[.*.common.junit48.FilterFactoryTest\\$FirstClass.class#testMethod]" ); assertTrue( "exact match on name should run", exactFilter.shouldRun( testMethod ) ); assertFalse( "other method should not match", exactFilter.shouldRun( otherMethod ) ); }
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 );  }