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:
Lai Jiang 2022-06-23 10:37:14 -04:00 committed by GitHub
parent 2f0c42ae81
commit 329b4b2735
2 changed files with 4 additions and 1 deletions

View file

@ -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,

View file

@ -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);
}