Skip to content

Commit e07dbb7

Browse files
authored
refactor: auditEntryDefinition (#758)
1 parent 92644e6 commit e07dbb7

File tree

12 files changed

+735
-762
lines changed

12 files changed

+735
-762
lines changed

core/flamingock-test-support/src/main/java/io/flamingock/support/FlamingockTestSupport.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,20 @@
3232
*
3333
* <h2>Usage Example</h2>
3434
* <pre>{@code
35+
* import static io.flamingock.support.domain.AuditEntryDefinition.*;
36+
*
3537
* FlamingockTestSupport
3638
* .given(builder)
37-
* .andAppliedChanges(InitialSetupChange.class, SchemaV1Change.class)
38-
* .andFailedChanges(FailedMigrationChange.class)
39+
* .andExistingAudit(
40+
* APPLIED(InitialSetupChange.class),
41+
* APPLIED(SchemaV1Change.class),
42+
* FAILED(FailedMigrationChange.class)
43+
* )
3944
* .whenRun()
4045
* .thenExpectAuditSequenceStrict(
41-
* APPLIED("schema-v2-change")
42-
* .withClass(SchemaV2Change.class)
46+
* APPLIED(SchemaV2Change.class)
4347
* .withAuthor("dev-team"),
44-
* APPLIED("data-migration-change")
48+
* APPLIED(DataMigrationChange.class)
4549
* )
4650
* .verify();
4751
* }</pre>
@@ -61,7 +65,7 @@
6165
* @see GivenStage
6266
* @see WhenStage
6367
* @see ThenStage
64-
* @see io.flamingock.support.domain.AuditEntryExpectation
68+
* @see io.flamingock.support.domain.AuditEntryDefinition
6569
*/
6670
public final class FlamingockTestSupport {
6771

0 commit comments

Comments
 (0)