@Test public void onlyGroupsIsDeclared() { Map<String, String> properties = singletonMap( TESTNG_GROUPS_PROP, "groupOne, groupTwo" ); ProviderParameters providerParameters = providerParametersMock( TestClass1.class ); when( providerParameters.getProviderProperties() ).thenReturn( properties ); JUnitPlatformProvider provider = new JUnitPlatformProvider( providerParameters ); assertEquals( 1, provider.getFilters().length ); }
Filter<?>[] getFilters() { return filters; }
JUnitPlatformProvider extends AbstractProvider { Filter<?>[] getFilters() { return filters; } }
JUnitPlatformProvider extends AbstractProvider { Filter<?>[] getFilters() { return filters; } JUnitPlatformProvider( ProviderParameters parameters );   JUnitPlatformProvider( ProviderParameters parameters, Launcher launcher ); }
JUnitPlatformProvider extends AbstractProvider { Filter<?>[] getFilters() { return filters; } JUnitPlatformProvider( ProviderParameters parameters );   JUnitPlatformProvider( ProviderParameters parameters, Launcher launcher ); @Override Iterable<Class<?>> getSuites(); @Override RunResult invoke( Object forkTestSet ); }
JUnitPlatformProvider extends AbstractProvider { Filter<?>[] getFilters() { return filters; } JUnitPlatformProvider( ProviderParameters parameters );   JUnitPlatformProvider( ProviderParameters parameters, Launcher launcher ); @Override Iterable<Class<?>> getSuites(); @Override RunResult invoke( Object forkTestSet );  }