BlockJUnit4ClassRunner has advantages for writers of custom JUnit runners that are slight changes to the default behavior, however:
In turn, in 2009 we introduced {@link Rule}s. In many cases where extending BlockJUnit4ClassRunner was necessary to add new behavior, {@link Rule}s can be used, which makes the extension more reusable and composable. @since 4.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|