Annotation Interface Resource
Annotation used by the
ResourcesExtension
to annotate fields and parameters that should be populated
with resource paths or data.-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<? extends SerdesProvider>
Defines theSerdesProvider
to be used when deserializing an object (seeResourcesExtension
for details).
-
Element Details
-
value
String valueThe resource classpath path.- Returns:
- the path to the resource relative to the classpath
-
-
-
serdes
Class<? extends SerdesProvider> serdesDefines theSerdesProvider
to be used when deserializing an object (seeResourcesExtension
for details). Defaults toJacksonJsonSerdes
.- Returns:
- the SerdesProvider to be used (when deserializing)
- Default:
- io.github.cjstehno.testthings.serdes.JacksonJsonSerdes.class
-