@Target(value=FIELD) @Retention(value=RUNTIME) public @interface GenerateInstant
AlchemyTestRunner, this Annotations allows the Runtime Injection of
Generated Instants using TimeGenerators from the AlchemyGenerator library.
Example:
`@RunWith(AlchemyTestRunner.class)
public class ExampleTest
{
`@GenerateInstant(ANYTIME)
private Instant timeOfOrder;
...
}
Note, ticks (`) used to escape Javadocs.GenerateString,
GenerateDate| Modifier and Type | Optional Element and Description |
|---|---|
long |
endTime
If using the
GenerateInstant.Type.RANGE type, specify an end time, in Epoch Millis. |
long |
startTime
If using the
GenerateInstant.Type.RANGE type, specify a beginning time, in Epoch Millis. |
GenerateInstant.Type |
value |
public abstract GenerateInstant.Type value
public abstract long startTime
GenerateInstant.Type.RANGE type, specify a beginning time, in Epoch Millis.public abstract long endTime
GenerateInstant.Type.RANGE type, specify an end time, in Epoch Millis.Copyright © 2015–2016 Aroma Tech. All rights reserved.