File tree Expand file tree Collapse file tree
java/edu/obya/blueprint/customer/cdc/pact/provider Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ dependencies {
8888 testCompileOnly(" org.projectlombok:lombok" )
8989 testAnnotationProcessor(" org.projectlombok:lombok" )
9090 testRuntimeOnly(" org.postgresql:postgresql" )
91+ testRuntimeOnly(" com.h2database:h2" )
9192 testImplementation(" io.qameta.allure:allure-junit5:${property(" allure.version" )} " )
9293
9394 // AT testing
Original file line number Diff line number Diff line change 99import edu .obya .blueprint .customer .domain .model .CustomerId ;
1010import edu .obya .blueprint .customer .domain .service .CustomerRepository ;
1111import io .micrometer .core .instrument .MeterRegistry ;
12+ import io .zonky .test .db .AutoConfigureEmbeddedDatabase ;
1213import org .junit .jupiter .api .BeforeEach ;
1314import org .junit .jupiter .api .TestTemplate ;
1415import org .junit .jupiter .api .extension .ExtendWith ;
2627import static edu .obya .blueprint .customer .domain .model .TestCustomer .TEST_CUSTOMER_ID ;
2728import static org .mockito .ArgumentMatchers .any ;
2829
29- @ ActiveProfiles ("test" )
30+ @ ActiveProfiles ({ "test" } )
3031@ Provider ("customerAPI" )
3132@ PactFolder ("customer/cdc/pact" )
3233@ Import (CustomerPactContextConfiguration .class )
34+ @ AutoConfigureEmbeddedDatabase
3335@ SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
3436public class CustomerPactProviderTest {
3537
Original file line number Diff line number Diff line change 1+ zonky :
2+ test :
3+ database :
4+ type : H2
You can’t perform that action at this time.
0 commit comments