@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public static @interface Spockito.Name
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
shortFormat
Returns true if the SHORT name format shall be used instead of the default LONG name format.
|
String |
value
Optional pattern to derive the test's name from the parameters.
|
public abstract String value
{row} - the current row index (zero based)
{0} - the row's value in the first column
{1} - the row's value in the second column
{ColumnA} - the row's value in the "ColumnA" column
{ColumnB} - the row's value in the "ColumnB" column
etc...
Default value is "[{row}]: {0}".
MessageFormatpublic abstract boolean shortFormat
LONG and SHORT name formats are defined as follows:
false (LONG format): "<TestClass>.<TestMethod><Name>"
true (SHORT format): "<Name>" for method level unrolling and
"<TestMethod>" or "<TestMethod><Name>" for class level unrolling
SHORT format is much nicer to look at but unfortunately it prevents individual test from being re-run in
Intellij.