@ Override protected List < Runner > getChildren ( ) { // one runner for each parameter List < Runner > runners = super . getChildren ( ) ; List < Runner > proxyRunners = new ArrayList <> ( runners . size ( ) ) ; for ( Runner runner : runners ) { // if the next line fails then the internal of Parameterized.class has been updated since this works with JUnit 4.11 BlockJUnit4ClassRunner blockJUnit4ClassRunner = ( BlockJUnit4ClassRunner ) runner ; Description description = blockJUnit4ClassRunner . getDescription ( ) ; String name = description . getDisplayName ( ) ; try { proxyRunners . add ( new ProxyTestClassRunnerForParameters ( mTestClass , mContainerUrl , name ) ) ; } catch ( InitializationError e ) { throw new RuntimeException ( "Could not create runner for paramamter " + name , e ) ; } } return proxyRunners ; }
replace the runners with slightly modified BasicProxyRunner