Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Add-on integration test cannot use application beans #49
Browse files Browse the repository at this point in the history
  • Loading branch information
knstvk committed Oct 3, 2021
1 parent df886ee commit 6ff8cfb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Primary;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
Expand All @@ -12,6 +13,7 @@

@SpringBootConfiguration
@EnableAutoConfiguration
@Import(${project_id.capitalize()}Configuration.class)
@JmixModule(dependsOn = ${project_id.capitalize()}Configuration.class)
public class ${project_id.capitalize()}TestConfiguration {

Expand Down

0 comments on commit 6ff8cfb

Please sign in to comment.