I have a custom test runner that extends BlockJUnit4ClassRunner, and I’d like to get the instance of the test class that’s instantiated in BlockJUnit4ClassRunner inside my custom test runner.
I have a custom test runner that extends BlockJUnit4ClassRunner, and I’d like to get
Share
I figured this one out.
What you can do is override
createTest()in BlockJUnit4ClassRunner, and pass the result ofsuper.createTest()to a method of your choice. For example: