ttt307307 / junitparams

Automatically exported from code.google.com/p/junitparams
0 stars 0 forks source link

Update Wiki MergingWithOtherRunners #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using 1.0.2 of JunitParams and the wiki entry MergingWithOtherRunners says

public class MyRunner extends BlockJUnit4ClassRunner {
   private ParameterisedTestClassRunner parameterisedRunner = new ParameterisedTestClassRunner();

but in fact ParameterisedTestClassRunner has no default C'tor.

I did something like this..
public abstract class MyTestRunner extends BlockJUnit4ClassRunner {

    private final ParameterisedTestClassRunner parameterisedRunner;

    public MyTestRunner (Class<?> klass) throws InitializationError {
        super(klass);
        parameterisedRunner = new ParameterisedTestClassRunner(super.getTestClass());
        // redirectJULToSLF4J();
    }

Original issue reported on code.google.com by bernd.fa...@gmail.com on 3 Jan 2014 at 7:29

GoogleCodeExporter commented 8 years ago

Original comment by lipinski...@gmail.com on 14 Apr 2014 at 2:32