Class SnapshotVerifier

java.lang.Object
au.com.origin.snapshots.SnapshotVerifier

public class SnapshotVerifier extends Object
  • Constructor Details

    • SnapshotVerifier

      public SnapshotVerifier(SnapshotConfig frameworkSnapshotConfig, Class<?> testClass)
    • SnapshotVerifier

      public SnapshotVerifier(SnapshotConfig frameworkSnapshotConfig, Class<?> testClass, boolean failOnOrphans)
      Instantiate before any tests have run for a given class
      Parameters:
      frameworkSnapshotConfig - configuration to use
      failOnOrphans - should the test break if snapshots exist with no matching method in the test class
      testClass - reference to class under test
  • Method Details

    • expectCondition

      public SnapshotContext expectCondition(Method testMethod, Object object)
    • validateSnapshots

      public void validateSnapshots()