GH-136 - Simple suppliers need to be executed transactionally in Scenario.

This commit is contained in:
Oliver Drotbohm
2023-02-20 19:07:08 +01:00
parent 2f34d69d83
commit 707d27e335
2 changed files with 20 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ public class Scenario {
Assert.notNull(supplier, "Supplier must not be null!");
Assert.notNull(cleanupCallback, "Cleanup callback must not be null!");
return stimulate((tx, e) -> supplier.get(), cleanupCallback);
return stimulate((tx) -> tx.execute(status -> supplier.get()), cleanupCallback);
}
/**