File tree Expand file tree Collapse file tree
src/test/java/de/rieckpil/blog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 132132 <dependency >
133133 <groupId >digital.pragmatech.testing</groupId >
134134 <artifactId >spring-test-profiler</artifactId >
135- <version >0.0.14</version >
136- <scope >test</scope >
137- </dependency >
138- <dependency >
139- <groupId >com.fasterxml.jackson.datatype</groupId >
140- <artifactId >jackson-datatype-jsr310</artifactId >
135+ <version >0.0.15</version >
141136 <scope >test</scope >
142137 </dependency >
143138
Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import org .springframework .boot .test .context .SpringBootTest ;
55import org .springframework .context .annotation .Import ;
6+ import org .springframework .test .context .TestPropertySource ;
67
8+ @ TestPropertySource (properties = "foo.bar=42" )
79@ SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
810@ Import (LocalDevTestcontainerConfig .class )
911class ShelfieApplicationIT {
Original file line number Diff line number Diff line change 1818import org .springframework .http .HttpStatus ;
1919import org .springframework .http .MediaType ;
2020import org .springframework .http .ResponseEntity ;
21+ import org .springframework .test .context .ActiveProfiles ;
2122import org .springframework .test .context .DynamicPropertyRegistry ;
2223import org .springframework .test .context .DynamicPropertySource ;
2324import org .testcontainers .junit .jupiter .Container ;
2930import static com .github .tomakehurst .wiremock .client .WireMock .urlEqualTo ;
3031import static org .assertj .core .api .Assertions .assertThat ;
3132
33+ @ ActiveProfiles ("other-test-profile" ) // show difference in Spring Test Profiler
3234@ AutoConfigureTestRestTemplate
3335@ Testcontainers
3436@ SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
You can’t perform that action at this time.
0 commit comments