Package org.japprove.annotations
Annotation Type ApprovalTest
@Retention(RUNTIME) @Test @ExtendWith(StringVerifierParameterResolver.class) @ExtendWith(JsonVerifierParameterResolver.class) public @interface ApprovalTest
@ApprovalTest is an extension of the @Test annotation and indicates the annotated
test method is used for approval testing.
An @ApprovalTest methods have to declare @StringVerifier or
@JsonVerifier as parameter, which can be used to verify Strings or JSON Objects.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringbaselineAllows to specify a name for the baseline.
-
Element Details
-
baseline
java.lang.String baselineAllows to specify a name for the baseline.- Returns:
- the name of the baseline
- Default:
- ""
-