@Target(value=FIELD) @Retention(value=RUNTIME) public @interface GenerateDate
AlchemyTestRunner, this Annotations allows the Runtime Injection of Generated Dates
using DateGenerators from the AlchemyGenerator library.
Example:
`@RunWith(AlchemyTestRunner.class)
public class ExampleTest
{
`@GenerateDate(ANYTIME)
private Date dateOfOrder;
...
}
Note, ticks (`) used to escape Javadocs.GenerateString| Modifier and Type | Optional Element and Description |
|---|---|
long |
endDate
If using the
GenerateDate.Type.RANGE type, specify an end date, in Epoch Millis. |
long |
startDate
If using the
GenerateDate.Type.RANGE type, specify a beginning date, in Epoch Millis. |
GenerateDate.Type |
value |
public abstract GenerateDate.Type value
public abstract long startDate
GenerateDate.Type.RANGE type, specify a beginning date, in Epoch Millis.public abstract long endDate
GenerateDate.Type.RANGE type, specify an end date, in Epoch Millis.Copyright © 2015–2018 RedRoma, Inc.. All rights reserved.