@Retention(value=RUNTIME) @Target(value=METHOD) public @interface ParametricTest
JUnitParametricRunner
) to run the annotated test multiple times by injecting each of the items in
the Collection returned by the test data provider.Modifier and Type | Optional Element and Description |
---|---|
Class<? extends TestDataProvider> |
dataProvider
The test data provider for multiple data test.
|
Class<? extends Throwable> |
expectedExceptionClass
Exception class that is expected to be raised during the test method execution.
|
String |
expectedExceptionMessage
Exception message that is expected during the test method execution.
|
int |
maxTestData
The maximum number of test data objects that must be used in the test.
|
String[] |
paramsValues
The parameters to instantiate the test data provider.
|
int |
timeout
Timeout in milliseconds to cause a test method to fail if it takes longer than that number of
milliseconds.
|
public abstract Class<? extends TestDataProvider> dataProvider
public abstract String[] paramsValues
public abstract int maxTestData
public abstract Class<? extends Throwable> expectedExceptionClass
public abstract String expectedExceptionMessage
public abstract int timeout
Copyright © 2012. All Rights Reserved.