@Target(value=FIELD) @Retention(value=RUNTIME) public @interface GenerateList
AlchemyTestRunner, this Annotations allows the Runtime Injection of List values, using
CollectionGenerators from the AlchemyGenerator library.
Example:
`@RunWith(AlchemyTestRunner.class)
public class ExampleTest
{
`@GenerateList(String.class)
private List<String> ids;
...
}
Note, ticks (`) used to escape Javadocs.GenerateEnum,
GeneratePojo| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
value
Specify the Generic Type of the List.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends tech.sirwellington.alchemy.generator.AlchemyGenerator<?>> |
customGenerator
Provide a custom Generator to use to generate each item.
|
int |
size
The number of elements to include in the list.
|
public abstract int size
> 0.public abstract Class<? extends tech.sirwellington.alchemy.generator.AlchemyGenerator<?>> customGenerator
Copyright © 2015–2018 RedRoma, Inc.. All rights reserved.