Skip to content

Commit 0bd156a

Browse files
committed
refactor(test-support): InMemoryFlamingockBulder and InMemoryAuditStore
1 parent 213920e commit 0bd156a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/testing/integration-testing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ See [BDD test API](./flamingock-bdd-api.md) for details on `andExistingAudit()`,
5555

5656
For faster tests where audit store persistence doesn't matter, you can use the in-memory components:
5757

58-
### InMemoryTestBuilder
58+
### InMemoryFlamingockBuilder
5959

6060
Creates a pre-configured builder with an in-memory audit store:
6161

6262
```java
63-
import io.flamingock.support.InMemoryTestBuilder;
63+
import io.flamingock.support.InMemoryFlamingockBuilder;
6464

6565
@Test
6666
void fastTestWithInMemoryAudit() {
67-
var builder = InMemoryTestBuilder.create()
67+
var builder = InMemoryFlamingockBuilder.create()
6868
.addTargetSystem(new NonTransactionalTargetSystem("kafka").addDependency(kafkaClient))
6969
.addStage(new Stage("kafka-changes").addCodePackage("com.myapp.changes.kafka"));
7070

@@ -78,20 +78,20 @@ void fastTestWithInMemoryAudit() {
7878
}
7979
```
8080

81-
### InMemoryTestAuditStore
81+
### InMemoryAuditStore
8282

8383
You can also use your production builder configured with all target systems, stages, and dependencies, and just override the audit store. This lets you test with your exact production configuration without needing a real audit store backend:
8484

8585
```java
86-
import io.flamingock.support.InMemoryTestAuditStore;
86+
import io.flamingock.support.InMemoryAuditStore;
8787

8888
@Test
8989
void reuseProductionBuilderWithInMemoryAudit() {
9090
// Retrieve your production builder (already configured with target systems, stages, etc.)
9191
var builder = MyAppFlamingockConfig.createBuilder();
9292

9393
// Override only the audit store for testing
94-
builder.setAuditStore(new InMemoryTestAuditStore());
94+
builder.setAuditStore(InMemoryAuditStore.creaet());
9595

9696
FlamingockTestSupport
9797
.givenBuilder(builder)

0 commit comments

Comments
 (0)