Annotation Type TestsAdvice
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@API(status=EXPERIMENTAL,
since="0.1")
public @interface TestsAdvice
Annotates public final class that becomes tests advice. Tests advice defines parsers available in every test class
(those parsers can be considered to be "global" parsers).
Only one class annotated with TestsAdvice is allowed on classpath.
Example:
@TestsAdvice
public final class GlobalJacksonMapper {
@WithJacksonMapper("custom-mapper")
ObjectMapper objectMapper() {
return new ObjectMapper().registerModule(new JavaTimeModule());
}
}