public class Spockito extends org.junit.runners.Suite
Spockito implements parameterized tests where the test data
is defined in a table-like structure via Spockito.Unroll annotation.| Modifier and Type | Class and Description |
|---|---|
static interface |
Spockito.Name
Annotation for a test or a test method to indicate an alternative name for the parameterized
test.
|
static interface |
Spockito.Ref
Annotation for fields or parameters of a test method or of the test constructor.
|
static interface |
Spockito.Unroll
Annotation for a test or a test method which provides test data for the tests.
|
static interface |
Spockito.UseValueConverter
Add this annotation to your test class or method if you want to specify custom value converters from string to
typed parameters.
|
| Constructor and Description |
|---|
Spockito(Class<?> clazz)
Only called reflectively.
|
| Modifier and Type | Method and Description |
|---|---|
void |
filter(org.junit.runner.manipulation.Filter filter) |
(package private) static String |
getName(Executable executable,
TableRow tableRow) |
(package private) static String |
getName(Spockito.Name name,
TableRow tableRow,
String defaultName) |
(package private) static ValueConverter |
getValueConverter(Spockito.UseValueConverter useValueConverter,
ValueConverter defaultValueConverter) |
(package private) static Spockito.Name |
nameAnnotationOrNull(Executable executable) |
(package private) static String |
parameterRefNameOrNull(Parameter parameter) |
describeChild, emptySuite, getChildren, runChildchildrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClassespublic void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
filter in interface org.junit.runner.manipulation.Filterablefilter in class org.junit.runners.ParentRunner<org.junit.runner.Runner>org.junit.runner.manipulation.NoTestsRemainExceptionstatic String parameterRefNameOrNull(Parameter parameter)
static Spockito.Name nameAnnotationOrNull(Executable executable)
static String getName(Executable executable, TableRow tableRow)
static String getName(Spockito.Name name, TableRow tableRow, String defaultName)
static ValueConverter getValueConverter(Spockito.UseValueConverter useValueConverter, ValueConverter defaultValueConverter)