1111import org .junit .jupiter .api .Tag ;
1212import org .junit .jupiter .api .TestTemplate ;
1313import org .junit .jupiter .api .extension .ExtendWith ;
14+ import org .slf4j .Logger ;
15+ import org .slf4j .LoggerFactory ;
1416import org .springframework .beans .factory .annotation .Autowired ;
1517import org .springframework .boot .test .context .SpringBootTest ;
1618import org .springframework .boot .test .web .server .LocalServerPort ;
2325@ ExtendWith ({SpringExtension .class , PactVerificationInvocationContextProvider .class })
2426@ Provider ("CPCourtScheduleProvider" )
2527@ PactBroker (
26- scheme = "https" ,
27- host = "${pact.broker.host}" ,
28+ url = "${pact.broker.url}" ,
2829 authentication = @ PactBrokerAuth (token = "${pact.broker.token}" )
2930)
3031@ Tag ("pact" )
3132public class CourtScheduleProviderPactTest {
3233
34+ private static final Logger LOG = LoggerFactory .getLogger (CourtScheduleProviderPactTest .class );
35+
3336 @ Autowired
3437 private CourtScheduleRepository courtScheduleRepository ;
3538
@@ -38,9 +41,9 @@ public class CourtScheduleProviderPactTest {
3841
3942 @ BeforeEach
4043 void setupTarget (PactVerificationContext context ) {
41- System . out . println ("Running test on port: " + port );
44+ LOG . atDebug (). log ("Running test on port: " + port );
4245 context .setTarget (new HttpTestTarget ("localhost" , port ));
43- System . out . println ("pact.verifier.publishResults: " + System .getProperty ("pact.verifier.publishResults" ));
46+ LOG . atDebug (). log ("pact.verifier.publishResults: " + System .getProperty ("pact.verifier.publishResults" ));
4447 }
4548
4649 @ State ("court schedule for case 456789 exists" )
0 commit comments