@Test public void tagExpressionsAreSupportedForIncludeTagsContainingAmpersand() { Map<String, String> properties = new HashMap<>(); properties.put( TESTNG_GROUPS_PROP, "tagOne & !tagTwo" ); properties.put( TESTNG_EXCLUDEDGROUPS_PROP, "tagThree & !tagFour" ); ProviderParameters providerParameters = providerParametersMock( TestClass1.class ); when( providerParameters.getProviderProperties() ).thenReturn( properties ); JUnitPlatformProvider provider = new JUnitPlatformProvider( providerParameters ); assertEquals( 2, 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 );  }