Download JAR files tagged by fallback with all dependencies
no-opens-it from group org.neo4j.community (version 5.26.0)
Neo4j community edition integration tests for fallback options when deep reflection isn't enabled.
0 downloads
Artifact no-opens-it
Group org.neo4j.community
Version 5.26.0
Last update 06. December 2024
Organization not specified
URL Not specified
License not specified
Dependencies amount 3
Dependencies junit-jupiter, assertj-core, mockito-core,
There are maybe transitive dependencies!
Group org.neo4j.community
Version 5.26.0
Last update 06. December 2024
Organization not specified
URL Not specified
License not specified
Dependencies amount 3
Dependencies junit-jupiter, assertj-core, mockito-core,
There are maybe transitive dependencies!
android-customtabs from group de.peilicke.sascha (version 3.1.0)
Group: de.peilicke.sascha Artifact: android-customtabs
Show all versions Show documentation
Show all versions Show documentation
There is no JAR file uploaded. A download is not possible! Please choose another version.
0 downloads
blob-union from group org.apache.james (version 3.5.0)
jlapisdata from group com.github.lapissea (version 1.0.4)
0 downloads
sfmf4j-jpathwatch from group com.github.sworisbreathing.sfmf4j (version 1.0)
0 downloads
nlp-opennlp-default from group io.redlink.nlp (version 3.0.0)
Provides a Tokenizer and Sentence Splitter that works for any language
that uses whitespaces for word tokenization and .!? for sentence
seperation. It is registererd as fallback model (ranking lower as 0) so
that it will only get used if the text was not processed by some other
model or even other preprocessors.
Artifact nlp-opennlp-default
Group io.redlink.nlp
Version 3.0.0
Last update 28. February 2022
Organization not specified
URL Not specified
License not specified
Dependencies amount 2
Dependencies nlp-opennlp, slf4j-api,
There are maybe transitive dependencies!
Group io.redlink.nlp
Version 3.0.0
Last update 28. February 2022
Organization not specified
URL Not specified
License not specified
Dependencies amount 2
Dependencies nlp-opennlp, slf4j-api,
There are maybe transitive dependencies!
nb-edit-externally from group de.poiu.nbee (version 1.0.3)
0 downloads
bees-boot2-assembly from group com.cloudbees.sdk (version 1.5.2)
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
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!
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!
Page 3 from 3 (items total 29)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy