Skip to content

Commit

Permalink
Remove Builder reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ununhexium committed Jul 29, 2024
1 parent 4f89ee1 commit 84f2442
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AlwaysTrueMigrationReversedTest {

@RegisterExtension
private static final E2eTestExtension E2E_TEST_EXTENSION = new E2eTestExtension(
defaultBuilder()
defaultBuilder().toBuilder()
.consumerConfigCustomizer(config -> config.getProperties()
.put("edc.flyway.additional.migration.locations", "classpath:db/additional-test-data/always-true-policy-legacy"))
.providerConfigCustomizer(config -> config.getProperties()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class AlwaysTrueMigrationTest {

@RegisterExtension
private static final E2eTestExtension E2E_TEST_EXTENSION = new E2eTestExtension(
withModule(":launchers:connectors:sovity-dev")
withModule(":launchers:connectors:sovity-dev").toBuilder()
.consumerConfigCustomizer(config -> config.getProperties()
.put("edc.flyway.additional.migration.locations", "classpath:db/additional-test-data/always-true-policy-migrated"))
.providerConfigCustomizer(config -> config.getProperties()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
@UtilityClass
public class CeE2eTestExtensionConfigFactory {

public static E2eTestExtensionConfig.E2eTestExtensionConfigBuilder defaultBuilder() {
return E2eTestExtensionConfig.builder().moduleName(":launchers:connectors:sovity-dev");
public static E2eTestExtensionConfig defaultBuilder() {
return E2eTestExtensionConfig.builder().moduleName(":launchers:connectors:sovity-dev").build();
}

public static E2eTestExtensionConfig.E2eTestExtensionConfigBuilder withModule(String module) {
return defaultBuilder().moduleName(module);
public static E2eTestExtensionConfig withModule(String module) {
return defaultBuilder().toBuilder().moduleName(module).build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
@UtilityClass
public class Helpers {
public static E2eTestExtension defaultE2eTestExtension() {
return new E2eTestExtension(withModule(":launchers:connectors:sovity-dev").build());
return new E2eTestExtension(withModule(":launchers:connectors:sovity-dev"));
}
}

0 comments on commit 84f2442

Please sign in to comment.