mirror of
https://github.com/google/nomulus
synced 2026-01-08 15:21:46 +00:00
Pass the withoutCannedData boolean to JpaTransactionManagerExtension builder (#1678)
This is an oversight from #1673 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1678) <!-- Reviewable:end -->
This commit is contained in:
@@ -118,7 +118,7 @@ abstract class JpaTransactionManagerExtension implements BeforeEachCallback, Aft
|
||||
private boolean includeNomulusSchema = true;
|
||||
|
||||
// Whether to prepolulate some registrars for ease of testing.
|
||||
private boolean withCannedData = false;
|
||||
private final boolean withCannedData;
|
||||
|
||||
JpaTransactionManagerExtension(
|
||||
Clock clock,
|
||||
|
||||
@@ -375,6 +375,9 @@ public final class AppEngineExtension implements BeforeEachCallback, AfterEachCa
|
||||
if (withCloudSql) {
|
||||
JpaTestExtensions.Builder builder =
|
||||
new JpaTestExtensions.Builder().withEntityClass(jpaTestEntities.toArray(new Class[0]));
|
||||
if (withoutCannedData) {
|
||||
builder.withoutCannedData();
|
||||
}
|
||||
if (clock != null) {
|
||||
builder.withClock(clock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user