All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Download provider-versionCatalog JAR file with all dependencies


mule-oracle-jms-provider from group mule (version 1.3-rc4)

Group: mule Artifact: mule-oracle-jms-provider

Download mule-oracle-jms-provider.jar (1.3-rc4)
 

3 downloads
Artifact mule-oracle-jms-provider
Group mule
Version 1.3-rc4


resteasy-multipart-provider from group org.jboss.resteasy (version 4.0.0.Beta4)

Group: org.jboss.resteasy Artifact: resteasy-multipart-provider

Download resteasy-multipart-provider.jar (4.0.0.Beta4)
 

3 downloads
Artifact resteasy-multipart-provider
Group org.jboss.resteasy
Version 4.0.0.Beta4


x509-provider from group com.microsoft.azure.sdk.iot.provisioning.security (version 1.1.0)

The Microsoft Azure IoT Provisioning Security X509 provider for Java

Group: com.microsoft.azure.sdk.iot.provisioning.security Artifact: x509-provider

Download x509-provider.jar (1.1.0)
 

3 downloads


resteasy-jaxb-provider from group org.jboss.resteasy (version 3.5.0.Final)

Group: org.jboss.resteasy Artifact: resteasy-jaxb-provider

Download resteasy-jaxb-provider.jar (3.5.0.Final)
 

3 downloads
Artifact resteasy-jaxb-provider
Group org.jboss.resteasy
Version 3.5.0.Final


jersey-test-framework-provider-inmemory from group org.glassfish.jersey.test-framework.providers (version 2.26)

Jersey Test Framework - InMemory container

Group: org.glassfish.jersey.test-framework.providers Artifact: jersey-test-framework-provider-inmemory

Download jersey-test-framework-provider-inmemory.jar (2.26)
 

2 downloads


wagon-provider-api from group org.apache.maven.wagon (version 3.1.0)

Maven Wagon API that defines the contract between different Wagon implementations

Group: org.apache.maven.wagon Artifact: wagon-provider-api

Download wagon-provider-api.jar (3.1.0)
 

2 downloads
Artifact wagon-provider-api
Group org.apache.maven.wagon
Version 3.1.0


pact-jvm-provider-spring_2.11 from group au.com.dius (version 3.5.10)

# Pact Spring/JUnit runner ## Overview Library provides ability to play contract tests against a provider using Spring & JUnit. This library is based on and references the JUnit package, so see [junit provider support](pact-jvm-provider-junit) for more details regarding configuration using JUnit. Supports: - Standard ways to load pacts from folders and broker - Easy way to change assertion strategy - Spring Test MockMVC Controllers and ControllerAdvice using MockMvc standalone setup. - MockMvc debugger output - Multiple @State runs to test a particular Provider State multiple times - **au.com.dius.pact.provider.junit.State** custom annotation - before each interaction that requires a state change, all methods annotated by `@State` with appropriate the state listed will be invoked. **NOTE:** For publishing provider verification results to a pact broker, make sure the Java system property `pact.provider.version` is set with the version of your provider. ## Example of MockMvc test ```java @RunWith(RestPactRunner.class) // Custom pact runner, child of PactRunner which runs only REST tests @Provider("myAwesomeService") // Set up name of tested provider @PactFolder("pacts") // Point where to find pacts (See also section Pacts source in documentation) public class ContractTest { //Create an instance of your controller. We cannot autowire this as we're not using (and don't want to use) a Spring test runner. @InjectMocks private AwesomeController awesomeController = new AwesomeController(); //Mock your service logic class. We'll use this to create scenarios for respective provider states. @Mock private AwesomeBusinessLogic awesomeBusinessLogic; //Create an instance of your controller advice (if you have one). This will be passed to the MockMvcTarget constructor to be wired up with MockMvc. @InjectMocks private AwesomeControllerAdvice awesomeControllerAdvice = new AwesomeControllerAdvice(); //Create a new instance of the MockMvcTarget and annotate it as the TestTarget for PactRunner @TestTarget public final MockMvcTarget target = new MockMvcTarget(); @Before //Method will be run before each test of interaction public void before() { //initialize your mocks using your mocking framework MockitoAnnotations.initMocks(this); //configure the MockMvcTarget with your controller and controller advice target.setControllers(awesomeController); target.setControllerAdvice(awesomeControllerAdvice); } @State("default", "no-data") // Method will be run before testing interactions that require "default" or "no-data" state public void toDefaultState() { target.setRunTimes(3); //let's loop through this state a few times for a 3 data variants when(awesomeBusinessLogic.getById(any(UUID.class))) .thenReturn(myTestHelper.generateRandomReturnData(UUID.randomUUID(), ExampleEnum.ONE)) .thenReturn(myTestHelper.generateRandomReturnData(UUID.randomUUID(), ExampleEnum.TWO)) .thenReturn(myTestHelper.generateRandomReturnData(UUID.randomUUID(), ExampleEnum.THREE)); } @State("error-case") public void SingleUploadExistsState_Success() { target.setRunTimes(1); //tell the runner to only loop one time for this state //you might want to throw exceptions to be picked off by your controller advice when(awesomeBusinessLogic.getById(any(UUID.class))) .then(i -> { throw new NotCoolException(i.getArgumentAt(0, UUID.class).toString()); }); } } ``` ## Using a Spring runner (version 3.5.7+) You can use `SpringRestPactRunner` instead of the default Pact runner to use the Spring test annotations. This will allow you to inject or mock spring beans. For example: ```java @RunWith(SpringRestPactRunner.class) @Provider("pricing") @PactBroker(protocol = "https", host = "${pactBrokerHost}", port = "443", authentication = @PactBrokerAuth(username = "${pactBrokerUser}", password = "${pactBrokerPassword}")) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) public class PricingServiceProviderPactTest { @MockBean private ProductClient productClient; // This will replace the bean with a mock in the application context @TestTarget @SuppressWarnings(value = "VisibilityModifier") public final Target target = new HttpTarget(8091); @State("Product X010000021 exists") public void setupProductX010000021() throws IOException { reset(productClient); ProductBuilder product = new ProductBuilder() .withProductCode("X010000021"); when(productClient.fetch((Set<String>) argThat(contains("X010000021")), any())).thenReturn(product); } @State("the product code X00001 can be priced") public void theProductCodeX00001CanBePriced() throws IOException { reset(productClient); ProductBuilder product = new ProductBuilder() .withProductCode("X00001"); when(productClient.find((Set<String>) argThat(contains("X00001")), any())).thenReturn(product); } } ``` ### Using Spring Context Properties (version 3.5.14+) From version 3.5.14 onwards, the SpringRestPactRunner will look up any annotation expressions (like `${pactBrokerHost}`) above) from the Spring context. For Springboot, this will allow you to define the properties in the application test properties. For instance, if you create the following `application.yml` in the test resources: ```yaml pactbroker: host: "your.broker.local" port: "443" protocol: "https" auth: username: "<your broker username>" password: "<your broker password>" ``` Then you can use the defaults on the `@PactBroker` annotation. ```java @RunWith(SpringRestPactRunner.class) @Provider("My Service") @PactBroker( authentication = @PactBrokerAuth(username = "${pactbroker.auth.username}", password = "${pactbroker.auth.password}") ) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class PactVerificationTest { ``` ### Using a random port with a Springboot test (version 3.5.14+) If you use a random port in a springboot test (by setting `SpringBootTest.WebEnvironment.RANDOM_PORT`), you can use the `SpringBootHttpTarget` which will get the application port from the spring application context. For example: ```java @RunWith(SpringRestPactRunner.class) @Provider("My Service") @PactBroker @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class PactVerificationTest { @TestTarget public final Target target = new SpringBootHttpTarget(); } ```

Group: au.com.dius Artifact: pact-jvm-provider-spring_2.11

Download pact-jvm-provider-spring_2.11.jar (3.5.10)
 

2 downloads
Artifact pact-jvm-provider-spring_2.11
Group au.com.dius
Version 3.5.10


jackson-jaxrs-yaml-provider from group com.fasterxml.jackson.jaxrs (version 2.9.5)

Functionality to handle YAML input/output for JAX-RS implementations (like Jersey and RESTeasy) using standard Jackson data binding.

Group: com.fasterxml.jackson.jaxrs Artifact: jackson-jaxrs-yaml-provider

Download jackson-jaxrs-yaml-provider.jar (2.9.5)
 

2 downloads


jersey-test-framework-provider-grizzly2 from group org.glassfish.jersey.test-framework.providers (version 2.27)

Jersey Test Framework - Grizzly2 container

Group: org.glassfish.jersey.test-framework.providers Artifact: jersey-test-framework-provider-grizzly2

Download jersey-test-framework-provider-grizzly2.jar (2.27)
 

2 downloads


com.liferay.oauth2.provider.scope.api from group com.liferay (version 1.0.2)

Liferay OAuth2 Provider Scope API

Group: com.liferay Artifact: com.liferay.oauth2.provider.scope.api

Download com.liferay.oauth2.provider.scope.api.jar (1.0.2)
 

2 downloads


resteasy-jackson-provider from group org.jboss.resteasy (version 3.0.10.Final)

Group: org.jboss.resteasy Artifact: resteasy-jackson-provider

Download resteasy-jackson-provider.jar (3.0.10.Final)
 

2 downloads
Artifact resteasy-jackson-provider
Group org.jboss.resteasy
Version 3.0.10.Final


maven-aether-provider from group org.apache.maven (version 3.3.3)

Extensions to Aether for utilizing Maven POM and repository metadata.

Group: org.apache.maven Artifact: maven-aether-provider

Download maven-aether-provider.jar (3.3.3)
 

2 downloads
Artifact maven-aether-provider
Group org.apache.maven
Version 3.3.3


resteasy-multipart-provider from group org.jboss.resteasy (version 3.1.3.Final)

Group: org.jboss.resteasy Artifact: resteasy-multipart-provider

Download resteasy-multipart-provider.jar (3.1.3.Final)
 

2 downloads
Artifact resteasy-multipart-provider
Group org.jboss.resteasy
Version 3.1.3.Final


jackson-jaxrs-json-provider from group com.fasterxml.jackson.jaxrs (version 2.4.3)

Functionality to handle JSON input/output for JAX-RS implementations (like Jersey and RESTeasy) using standard Jackson data binding.

Group: com.fasterxml.jackson.jaxrs Artifact: jackson-jaxrs-json-provider

Download jackson-jaxrs-json-provider.jar (2.4.3)
 

2 downloads


jackson-jaxrs-json-provider from group com.fasterxml.jackson.jaxrs (version 2.7.8)

Functionality to handle JSON input/output for JAX-RS implementations (like Jersey and RESTeasy) using standard Jackson data binding.

Group: com.fasterxml.jackson.jaxrs Artifact: jackson-jaxrs-json-provider

Download jackson-jaxrs-json-provider.jar (2.7.8)
 

2 downloads




Page 12 from 51 (items total 756)


© 2015 - 2025 Weber Informatics LLC | Privacy Policy