Package de.skuzzle.test.snapshots
Interface SnapshotDsl.ChooseStructure
-
- All Superinterfaces:
SnapshotDsl.ChooseAssertions
- Enclosing interface:
- SnapshotDsl
@API(status=STABLE) public static interface SnapshotDsl.ChooseStructure extends SnapshotDsl.ChooseAssertions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SnapshotTestResultmatchesSnapshotStructure()Asserts that the serialized actual test result structurally matches the persisted snapshot.-
Methods inherited from interface de.skuzzle.test.snapshots.SnapshotDsl.ChooseAssertions
justUpdateSnapshot, matchesAccordingTo, matchesSnapshotText
-
-
-
-
Method Detail
-
matchesSnapshotStructure
SnapshotTestResult matchesSnapshotStructure() throws Exception
Asserts that the serialized actual test result structurally matches the persisted snapshot. This method delegates to theStructuralAssertionsinstance in place- Returns:
- Details about the snapshot.
- Throws:
AssertionError- If the serialized objects do not match according toStructuralAssertions.assertEquals(String, String)or if snapshots have been updated.Exception- If any kind of technical exception (except assertion failure) occurred.
-
-