Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Dec 5, 2023
1 parent e6ebc12 commit 8bed2da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ plugins {
id 'io.spring.dependency-management' version '1.1.4'
id 'java'
id "au.com.dius.pact" version "4.6.3"
// id "au.com.dius.pact.provider:gradle" version "4.6.3"
}

group = 'com.example'
Expand Down Expand Up @@ -53,10 +52,6 @@ pact {
withSelectors {
mainBranch() // (recommended) - Returns the pacts for consumers configured mainBranch property
deployedOrReleased() // (recommended) - Returns the pacts for all versions of the consumer that are currently deployed or released and currently supported in any environment.
// deployedTo('test') // Normally, this would not be needed, Any versions currently deployed to the specified environment.
// deployedTo('test') // Normally, this would not be needed, Any versions currently deployed to the specified environment.
// environment('test') // Normally, this would not be needed, Any versions currently deployed or released and supported in the specified environment.
// environment('production') // Normally, this would not be needed, Any versions currently deployed or released and supported in the specified environment.
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,17 @@
import org.springframework.messaging.Message;

@Provider("pactflow-example-provider-java-kafka")
@PactBroker(scheme = "https", host = "${PACT_BROKER_HOST}",
authentication = @PactBrokerAuth(token = "${PACT_BROKER_TOKEN}"))
public class ProductsKafkaProducerTest {
@PactBroker(scheme = "https", host = "${PACT_BROKER_HOST}", authentication = @PactBrokerAuth(token = "${PACT_BROKER_TOKEN}"))
public class ProductsKafkaProducerTest {
private static final Logger LOGGER = LoggerFactory.getLogger(ProductsKafkaProducerTest.class);

@au.com.dius.pact.provider.junitsupport.loader.PactBrokerConsumerVersionSelectors
public static SelectorBuilder consumerVersionSelectors() {
// Select Pacts for consumers deployed or released, or on the main branch
return new SelectorBuilder()
@au.com.dius.pact.provider.junitsupport.loader.PactBrokerConsumerVersionSelectors
public static SelectorBuilder consumerVersionSelectors() {
// Select Pacts for consumers deployed or released, or on the main branch
return new SelectorBuilder()
.deployedOrReleased()
.mainBranch();
}
}

@TestTemplate
@ExtendWith(PactVerificationInvocationContextProvider.class)
Expand Down

0 comments on commit 8bed2da

Please sign in to comment.