Interface SnapshotDsl.Snapshot

  • All Superinterfaces:
    SnapshotDsl.ChooseActual, SnapshotDsl.ChooseName
    Enclosing interface:
    SnapshotDsl

    @API(status=STABLE)
    public static interface SnapshotDsl.Snapshot
    extends SnapshotDsl.ChooseActual, SnapshotDsl.ChooseName
    Allows to do snapshot assertions. An instance of this class can be injected into your test case by just specifying a parameter of this type:
     @Test
     void test(Snapshot snapshot) throws Exception {
         ...
         snapshot.assertThat(...)...
     }
     
    Note that the respective test class must be annotated with EnableSnapshotTests, otherwise the test framework will not be able to resolve the Snapshot parameter of the test method.
    Author:
    Simon Taddiken