Skip to content

Commit

Permalink
fix(kafka): integration test replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelbrayelle committed Jul 11, 2022
1 parent 08cf4e3 commit 15b8e5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.add(SOURCE.template("KafkaConfiguration.java"), toSrcMainJava().append("/technical/infrastructure/config/kafka/KafkaConfiguration.java"))
.and()
.mandatoryReplacements()
.in(TEST_JAVA + "/IntegrationTest.java")
.in(TEST_JAVA + "/" + properties.basePackage().path() + "/IntegrationTest.java")
.add(text("import org.springframework.boot.test.context.SpringBootTest;"), importExtendWith())
.add(text("public @interface"), extendWith())
.and()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void shouldBuildKafkaModule() {
pomFile(),
new ModuleFile(
"src/main/resources/generator/server/springboot/core/IntegrationTest.java.mustache",
TEST_JAVA + "/IntegrationTest.java"
TEST_JAVA + "/" + properties.basePackage().path() + "/IntegrationTest.java"
),
readmeFile()
)
Expand All @@ -72,7 +72,7 @@ void shouldBuildKafkaModule() {
.containing("kafka.producer.value.serializer=org.apache.kafka.common.serialization.StringSerializer")
.containing("kafka.polling.timeout=10000")
.and()
.createFile(TEST_JAVA + "/IntegrationTest.java")
.createFile(TEST_JAVA + "/" + properties.basePackage().path() + "/IntegrationTest.java")
.containing("@ExtendWith(KafkaTestContainerExtension.class)")
.and()
.createFile(MAIN_JAVA + "/" + TECHNICAL_INFRASTRUCTURE_CONFIG + "/kafka/KafkaProperties.java")
Expand Down

0 comments on commit 15b8e5c

Please sign in to comment.