Package de.skuzzle.test.snapshots
Interface StructuredDataProvider
-
- All Known Implementing Classes:
StructuredData,TextSnapshot
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface @API(status=STABLE) public interface StructuredDataProvider
Tagging interface for classes that can provide an instance ofStructuredData. This is mostly useful in order for the IDE to list all available snapshot data formats by inspecting the sub-type hierarchy of this interface.Note that
StructuredDataitself implements this interface. This allows to pass both a concrete instance of StructuredData or a dedicated builder implementation to the snapshot DSL.- Author:
- Simon Taddiken
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StructuredDatabuild()Provides theStructuredDatainstance which defines the serialization format and the way in which serialized objects are compared.
-
-
-
Method Detail
-
build
StructuredData build()
Provides theStructuredDatainstance which defines the serialization format and the way in which serialized objects are compared.- Returns:
- The
StructuredDatainstance.
-
-