@Test public void parsesConfigurationParameters() { ProviderParameters providerParameters = providerParametersMock( TestClass1.class ); when( providerParameters.getProviderProperties() ) .thenReturn( singletonMap( JUnitPlatformProvider.CONFIGURATION_PARAMETERS, "foo = true\nbar 42\rbaz: *\r\nqux: EOF" ) ); JUnitPlatformProvider provider = new JUnitPlatformProvider( providerParameters ); assertEquals( 4, provider.getConfigurationParameters().size() ); assertEquals( "true", provider.getConfigurationParameters().get( "foo" ) ); assertEquals( "42", provider.getConfigurationParameters().get( "bar" ) ); assertEquals( "*", provider.getConfigurationParameters().get( "baz" ) ); assertEquals( "EOF", provider.getConfigurationParameters().get( "qux" ) ); }
Map<String, String> getConfigurationParameters() { return configurationParameters; }
JUnitPlatformProvider extends AbstractProvider { Map<String, String> getConfigurationParameters() { return configurationParameters; } }
JUnitPlatformProvider extends AbstractProvider { Map<String, String> getConfigurationParameters() { return configurationParameters; } JUnitPlatformProvider( ProviderParameters parameters );   JUnitPlatformProvider( ProviderParameters parameters, Launcher launcher ); }
JUnitPlatformProvider extends AbstractProvider { Map<String, String> getConfigurationParameters() { return configurationParameters; } JUnitPlatformProvider( ProviderParameters parameters );   JUnitPlatformProvider( ProviderParameters parameters, Launcher launcher ); @Override Iterable<Class<?>> getSuites(); @Override RunResult invoke( Object forkTestSet ); }
JUnitPlatformProvider extends AbstractProvider { Map<String, String> getConfigurationParameters() { return configurationParameters; } JUnitPlatformProvider( ProviderParameters parameters );   JUnitPlatformProvider( ProviderParameters parameters, Launcher launcher ); @Override Iterable<Class<?>> getSuites(); @Override RunResult invoke( Object forkTestSet );  }