Uses of Class
org.dbunit.annotation.runtime.TesterStateSnapshot
Packages that use TesterStateSnapshot
-
Uses of TesterStateSnapshot in org.dbunit.annotation.runtime
Methods in org.dbunit.annotation.runtime that return TesterStateSnapshotModifier and TypeMethodDescriptionstatic TesterStateSnapshotTesterStateSnapshot.capture(IDatabaseTester tester) Capturestester's current dataset and setup/teardown operations.Methods in org.dbunit.annotation.runtime with parameters of type TesterStateSnapshotModifier and TypeMethodDescriptionstatic voidTesterStateSnapshot.restore(IDatabaseTester tester, TesterStateSnapshot snapshot) Restoressnapshotontotester, or does nothing whensnapshotisnull- the case when a lifecycle threw before capturing one, or never reached the capture at all.static voidTesterStateSnapshot.restoreSuppressing(IDatabaseTester tester, TesterStateSnapshot snapshot, Throwable primary) Restoressnapshotontotesterwhileprimaryis already being thrown, attaching any failure from the restore itself to it viaThrowable.addSuppressed(Throwable)rather than letting that failure replace the one already in flight.