For DistributedTest example, see CreateAndLocalDestroyInTXRegressionTest.
1) Add these imports:
import junitparams.JUnitParamsRunner; import junitparams.Parameters; import junitparams.naming.TestCaseName;
2) Add this to your test class:
@RunWith(JUnitParamsRunner.class)
3) Use both `@Parameters` and `@TestCaseName` on test method(s) using parameters:
@Test @Parameters({"true", "false"}) @TestCaseName("{method}({params})") public void testSomeBehavior(final boolean value) throws Exception {