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

Download JAR files tagged by invocation with all dependencies

Search JAR files by class name

javax.batch-annotation from group javax.batch (version 1.0-b17)

Group: javax.batch Artifact: javax.batch-annotation
Show all versions Show documentation Show source 
 

1 downloads
Artifact javax.batch-annotation
Group javax.batch
Version 1.0-b17
Last update 18. March 2013
Organization not specified
URL Not specified
License not specified
Dependencies amount 0
Dependencies No dependencies
There are maybe transitive dependencies!

com.ibm.batch-runtime-all from group com.ibm.batch (version 1.0-b10)

Group: com.ibm.batch Artifact: com.ibm.batch-runtime-all
Show all versions Show documentation Show source 
 

0 downloads
Artifact com.ibm.batch-runtime-all
Group com.ibm.batch
Version 1.0-b10
Last update 15. February 2013
Organization not specified
URL Not specified
License not specified
Dependencies amount 0
Dependencies No dependencies
There are maybe transitive dependencies!

com.ibm.batch-tck from group com.ibm.batch (version 1.0-b05)

Group: com.ibm.batch Artifact: com.ibm.batch-tck
Show all versions Show documentation Show source 
 

0 downloads
Artifact com.ibm.batch-tck
Group com.ibm.batch
Version 1.0-b05
Last update 15. February 2013
Organization not specified
URL Not specified
License not specified
Dependencies amount 10
Dependencies testng, com.ibm.batch-tck-spi, javax.batch-annotation, com.ibm.batch-model, javax.batch-api, com.ibm.batch-runtime, javax.inject-tck, derby, derbynet, xmlunit,
There are maybe transitive dependencies!

com.ibm.batch-runtime from group com.ibm.batch (version 1.0-b06)

Group: com.ibm.batch Artifact: com.ibm.batch-runtime
Show all versions Show documentation Show source 
 

7 downloads
Artifact com.ibm.batch-runtime
Group com.ibm.batch
Version 1.0-b06
Last update 15. February 2013
Organization not specified
URL Not specified
License not specified
Dependencies amount 4
Dependencies javax.batch-annotation, com.ibm.batch-model, javax.batch-api, com.ibm.batch-tck-spi,
There are maybe transitive dependencies!

com.ibm.batch-tck-spi from group com.ibm.batch (version 1.0-b05)

Group: com.ibm.batch Artifact: com.ibm.batch-tck-spi
Show all versions Show documentation Show source 
 

0 downloads
Artifact com.ibm.batch-tck-spi
Group com.ibm.batch
Version 1.0-b05
Last update 15. February 2013
Organization not specified
URL Not specified
License not specified
Dependencies amount 1
Dependencies javax.batch-api,
There are maybe transitive dependencies!

com.ibm.batch-model from group com.ibm.batch (version 1.0-b05)

Group: com.ibm.batch Artifact: com.ibm.batch-model
Show all versions Show documentation Show source 
 

0 downloads
Artifact com.ibm.batch-model
Group com.ibm.batch
Version 1.0-b05
Last update 15. February 2013
Organization not specified
URL Not specified
License not specified
Dependencies amount 0
Dependencies No dependencies
There are maybe transitive dependencies!

com.ibm.batch-cdi-integration from group com.ibm.batch (version 1.0-b04)

Group: com.ibm.batch Artifact: com.ibm.batch-cdi-integration
Show all versions Show documentation Show source 
 

0 downloads
Artifact com.ibm.batch-cdi-integration
Group com.ibm.batch
Version 1.0-b04
Last update 31. January 2013
Organization not specified
URL Not specified
License not specified
Dependencies amount 3
Dependencies com.ibm.batch-runtime, javax.batch-annotation, javax.batch-api,
There are maybe transitive dependencies!

com.ibm.batch-annotation-processors from group com.ibm.batch (version 1.0-b03)

Group: com.ibm.batch Artifact: com.ibm.batch-annotation-processors
Show all versions Show documentation Show source 
 

0 downloads
Artifact com.ibm.batch-annotation-processors
Group com.ibm.batch
Version 1.0-b03
Last update 11. January 2013
Organization not specified
URL Not specified
License not specified
Dependencies amount 1
Dependencies javax.batch-annotation,
There are maybe transitive dependencies!

pact-jvm-provider-junit5-spring from group au.com.dius (version 4.0.10)

# Pact Spring/JUnit5 Support This module extends the base [Pact JUnit5 module](../pact-jvm-provider-junit5). See that for more details. For writing Spring Pact verification tests with JUnit 5, there is an JUnit 5 Invocation Context Provider that you can use with the `@TestTemplate` annotation. This will generate a test for each interaction found for the pact files for the provider. To use it, add the `@Provider` and `@ExtendWith(SpringExtension.class)` and one of the pact source annotations to your test class (as per a JUnit 5 test), then add a method annotated with `@TestTemplate` and `@ExtendWith(PactVerificationSpringProvider.class)` that takes a `PactVerificationContext` parameter. You will need to call `verifyInteraction()` on the context parameter in your test template method. For example: ```java @ExtendWith(SpringExtension.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) @Provider("Animal Profile Service") @PactBroker public class ContractVerificationTest { @TestTemplate @ExtendWith(PactVerificationSpringProvider.class) void pactVerificationTestTemplate(PactVerificationContext context) { context.verifyInteraction(); } } ``` You will now be able to setup all the required properties using the Spring context, e.g. creating an application YAML file in the test resources: ```yaml pactbroker: host: your.broker.host auth: username: broker-user password: broker.password ``` You can also run pact tests against `MockMvc` without need to spin up the whole application context which takes time and often requires more additional setup (e.g. database). In order to run lightweight tests just use `@WebMvcTest` from Spring and `MockMvcTestTarget` as a test target before each test. For example: ```java @WebMvcTest @Provider("myAwesomeService") @PactBroker class ContractVerificationTest { @Autowired private MockMvc mockMvc; @TestTemplate @ExtendWith(PactVerificationInvocationContextProvider.class) void pactVerificationTestTemplate(PactVerificationContext context) { context.verifyInteraction(); } @BeforeEach void before(PactVerificationContext context) { context.setTarget(new MockMvcTestTarget(mockMvc)); } } ``` You can also use `MockMvcTestTarget` for tests without spring context by providing the controllers manually. For example: ```java @Provider("myAwesomeService") @PactFolder("pacts") class MockMvcTestTargetStandaloneMockMvcTestJava { @TestTemplate @ExtendWith(PactVerificationInvocationContextProvider.class) void pactVerificationTestTemplate(PactVerificationContext context) { context.verifyInteraction(); } @BeforeEach void before(PactVerificationContext context) { MockMvcTestTarget testTarget = new MockMvcTestTarget(); testTarget.setControllers(new DataResource()); context.setTarget(testTarget); } @RestController static class DataResource { @GetMapping("/data") @ResponseStatus(HttpStatus.NO_CONTENT) void getData(@RequestParam("ticketId") String ticketId) { } } } ``` **Important:** Since `@WebMvcTest` starts only Spring MVC components you can't use `PactVerificationSpringProvider` and need to fallback to `PactVerificationInvocationContextProvider`

Group: au.com.dius Artifact: pact-jvm-provider-junit5-spring
Show all versions Show documentation Show source 
 

0 downloads
Artifact pact-jvm-provider-junit5-spring
Group au.com.dius
Version 4.0.10
Last update 18. April 2020
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 0
Dependencies No dependencies
There are maybe transitive dependencies!

pact-jvm-provider-junit5_2.11 from group au.com.dius (version 3.5.24)

# Pact Junit 5 Extension ## Overview For writing Pact verification tests with JUnit 5, there is an JUnit 5 Invocation Context Provider that you can use with the `@TestTemplate` annotation. This will generate a test for each interaction found for the pact files for the provider. To use it, add the `@Provider` and one of the pact source annotations to your test class (as per a JUnit 4 test), then add a method annotated with `@TestTemplate` and `@ExtendWith(PactVerificationInvocationContextProvider.class)` that takes a `PactVerificationContext` parameter. You will need to call `verifyInteraction()` on the context parameter in your test template method. For example: ```java @Provider("myAwesomeService") @PactFolder("pacts") public class ContractVerificationTest { @TestTemplate @ExtendWith(PactVerificationInvocationContextProvider.class) void pactVerificationTestTemplate(PactVerificationContext context) { context.verifyInteraction(); } } ``` For details on the provider and pact source annotations, refer to the [Pact junit runner](../pact-jvm-provider-junit/README.md) docs. ## Test target You can set the test target (the object that defines the target of the test, which should point to your provider) on the `PactVerificationContext`, but you need to do this in a before test method (annotated with `@BeforeEach`). There are three different test targets you can use: `HttpTestTarget`, `HttpsTestTarget` and `AmpqTestTarget`. For example: ```java @BeforeEach void before(PactVerificationContext context) { context.setTarget(HttpTestTarget.fromUrl(new URL(myProviderUrl))); // or something like // context.setTarget(new HttpTestTarget("localhost", myProviderPort, "/")); } ``` ## Provider State Methods Provider State Methods work in the same way as with JUnit 4 tests, refer to the [Pact junit runner](../pact-jvm-provider-junit/README.md) docs. ## Modifying the requests before they are sent **Important Note:** You should only use this feature for things that can not be persisted in the pact file. By modifying the request, you are potentially modifying the contract from the consumer tests! Sometimes you may need to add things to the requests that can't be persisted in a pact file. Examples of these would be authentication tokens, which have a small life span. The Http and Https test targets support injecting the request that will executed into the test template method. You can then add things to the request before calling the `verifyInteraction()` method. For example to add a header: ```java @TestTemplate @ExtendWith(PactVerificationInvocationContextProvider.class) void testTemplate(PactVerificationContext context, HttpRequest request) { // This will add a header to the request request.addHeader("X-Auth-Token", "1234"); context.verifyInteraction(); } ``` ## Objects that can be injected into the test methods You can inject the following objects into your test methods (just like the `PactVerificationContext`). They will be null if injected before the supported phase. | Object | Can be injected from phase | Description | | ------ | --------------- | ----------- | | PactVerificationContext | @BeforeEach | The context to use to execute the interaction test | | Pact | any | The Pact model for the test | | Interaction | any | The Interaction model for the test | | HttpRequest | @TestTemplate | The request that is going to be executed (only for HTTP and HTTPS targets) | | ProviderVerifier | @TestTemplate | The verifier instance that is used to verify the interaction |

Group: au.com.dius Artifact: pact-jvm-provider-junit5_2.11
Show all versions Show documentation Show source 
 

2 downloads
Artifact pact-jvm-provider-junit5_2.11
Group au.com.dius
Version 3.5.24
Last update 04. November 2018
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 9
Dependencies kotlin-stdlib-jdk8, kotlin-reflect, slf4j-api, groovy-all, kotlin-logging, scala-library, scala-logging_2.11, pact-jvm-provider-junit_2.11, junit-jupiter-api,
There are maybe transitive dependencies!



Page 17 from 18 (items total 172)


© 2015 - 2024 Weber Informatics LLC | Privacy Policy