KentBeck/junit — Issue #389: ParentRunner#runLeaf useful to override, but final
Author: rockwalrus
Created: 2012-02-23 23:35:47+00:00
State: open

I'm trying to write a runner that, among other things, needs to handle notifications differently from the standard method. (It chooses whether to report a failure or not based on the results of other tests.)

ParentRunner#runLeaf is the best place to override this behavior, but since it is final, I have to override all of BlockJUnit4ClassRunner#runChild and duplicate most of its code and runLeaf's code or find some other workaround.