mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02: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:
parent
2f0c42ae81
commit
329b4b2735
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue