package junitparams.naming; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Use this annotation to specify the name for individual test case. */ @Retention(RetentionPolicy.RUNTIME) public @interface TestCaseName { /** * A template of the individual test case name. * This template can contain macros, which will be substituted by their actual values at runtime. *

* Supported macros are: *

* Lets assume, that we are testing Fibonacci sequence generator. We have a test with the following signature *

     * {@literal @}Parameters({ "0,1", "8,34" })
     * public void testFibonacci(int indexInSequence, int expectedNumber) { ... }
     * 
* Here are some examples, that can be used as a test name template: * */ String value() default MacroSubstitutionNamingStrategy.DEFAULT_TEMPLATE; }