From 426e36640b22858a895a7b1d3bee03db35f351aa Mon Sep 17 00:00:00 2001 From: Nicolas Pepin-Perreault Date: Tue, 22 Aug 2023 18:25:12 +0200 Subject: [PATCH] refactor(engine): ensure factory fails for snapshot only DB --- .../zeebe/process/test/engine/db/InMemoryDbFactory.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/src/main/java/io/camunda/zeebe/process/test/engine/db/InMemoryDbFactory.java b/engine/src/main/java/io/camunda/zeebe/process/test/engine/db/InMemoryDbFactory.java index 1a039b73..8de2ce73 100644 --- a/engine/src/main/java/io/camunda/zeebe/process/test/engine/db/InMemoryDbFactory.java +++ b/engine/src/main/java/io/camunda/zeebe/process/test/engine/db/InMemoryDbFactory.java @@ -22,4 +22,9 @@ public ZeebeDb createDb() { public ZeebeDb createDb(final File pathName) { return new InMemoryDb<>(); } + + @Override + public ZeebeDb openSnapshotOnlyDb(final File path) { + throw new UnsupportedOperationException("Snapshots are not supported with in-memory databases"); + } }