- java.lang.Object
-
- de.skuzzle.test.snapshots.StructuredData
-
- All Implemented Interfaces:
StructuredDataProvider
@API(status=STABLE) public final class StructuredData extends Object implements StructuredDataProvider
Combines aSnapshotSerializerand aStructuralAssertionsinstance.This class implements
StructuredDataProviderso thatbuild()always returnsthis. This allows to pass a concrete instance of this class directly to the snapshot DSLSnapshotDsl.ChooseDataFormat.as(StructuredDataProvider)- Author:
- Simon Taddiken
- See Also:
StructuredDataProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StructuredDatabuild()Provides theStructuredDatainstance which defines the serialization format and the way in which serialized objects are compared.SnapshotSerializersnapshotSerializer()StructuralAssertionsstructuralAssertions()static StructuredDatawith(SnapshotSerializer snapshotSerializer, StructuralAssertions sructuralAssertions)
-
-
-
Method Detail
-
with
public static StructuredData with(SnapshotSerializer snapshotSerializer, StructuralAssertions sructuralAssertions)
-
snapshotSerializer
public SnapshotSerializer snapshotSerializer()
-
structuralAssertions
public StructuralAssertions structuralAssertions()
-
build
public StructuredData build()
Description copied from interface:StructuredDataProviderProvides theStructuredDatainstance which defines the serialization format and the way in which serialized objects are compared.- Specified by:
buildin interfaceStructuredDataProvider- Returns:
- The
StructuredDatainstance.
-
-