@Documented @Target(value=METHOD) @Retention(value=RUNTIME) @ArgumentsSource(value=EventArgumentsProvider.class) public @interface Event
ParameterizedTest.
@ParameterizedTest
@Event(value = "sqs_event.json", type = SQSEvent.class)
public void testInjectEvent(SQSEvent event) {
assertThat(event).isNotNull();
assertThat(event.getRecords()).hasSize(1);
}
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value
Path and file name of the json event
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<?> |
type
Type of the event (for example, one of the aws-lambda-java-events), or your own type
|
public abstract java.lang.String value
public abstract java.lang.Class<?> type
Copyright © 2020. All rights reserved.