Download JAR files tagged by invoked with all dependencies
client from group org.renci.node-agent2 (version 0.2.2)
1 downloads
Artifact client
Group org.renci.node-agent2
Version 0.2.2
Last update 11. August 2017
Organization not specified
URL http://maven.apache.org
License not specified
Dependencies amount 3
Dependencies httpclient, json-simple, agentlib,
There are maybe transitive dependencies!
Group org.renci.node-agent2
Version 0.2.2
Last update 11. August 2017
Organization not specified
URL http://maven.apache.org
License not specified
Dependencies amount 3
Dependencies httpclient, json-simple, agentlib,
There are maybe transitive dependencies!
null-agent from group org.renci.node-agent2 (version 0.2.2)
0 downloads
agent-server from group org.renci.node-agent2 (version 0.2.2)
0 downloads
Artifact agent-server
Group org.renci.node-agent2
Version 0.2.2
Last update 11. August 2017
Organization not specified
URL http://maven.apache.org
License not specified
Dependencies amount 10
Dependencies commons-lang, commons-codec, agent-config, agent-core, spring-boot-starter-web, spring-boot-starter, spring-boot-starter-log4j, spring-boot-starter-jetty, spring-boot-starter-security, spring-boot-starter-data-jpa,
There are maybe transitive dependencies!
Group org.renci.node-agent2
Version 0.2.2
Last update 11. August 2017
Organization not specified
URL http://maven.apache.org
License not specified
Dependencies amount 10
Dependencies commons-lang, commons-codec, agent-config, agent-core, spring-boot-starter-web, spring-boot-starter, spring-boot-starter-log4j, spring-boot-starter-jetty, spring-boot-starter-security, spring-boot-starter-data-jpa,
There are maybe transitive dependencies!
agent-core from group org.renci.node-agent2 (version 0.2.2)
0 downloads
Artifact agent-core
Group org.renci.node-agent2
Version 0.2.2
Last update 11. August 2017
Organization not specified
URL http://maven.apache.org
License not specified
Dependencies amount 2
Dependencies agentlib, agent-config,
There are maybe transitive dependencies!
Group org.renci.node-agent2
Version 0.2.2
Last update 11. August 2017
Organization not specified
URL http://maven.apache.org
License not specified
Dependencies amount 2
Dependencies agentlib, agent-config,
There are maybe transitive dependencies!
agent-config from group org.renci.node-agent2 (version 0.2.2)
0 downloads
agent from group org.renci.node-agent2 (version 0.2.2)
Group: org.renci.node-agent2 Artifact: agent
Show all versions
Show all versions
There is no JAR file uploaded. A download is not possible! Please choose another version.
0 downloads
agentlib from group org.renci.node-agent2 (version 0.2.2)
1 downloads
node-agent2 from group org.renci.node-agent2 (version 0.2.2)
Group: org.renci.node-agent2 Artifact: node-agent2
Show all versions
Show all versions
There is no JAR file uploaded. A download is not possible! Please choose another version.
0 downloads
clirr-maven-plugin from group org.neo4j.build.plugins (version 1.0.1)
This is a specialized version of the Clirr Maven Plugin. It adds capabilities for excluding specific
error types, as well as separating code into three, rather than two, subgroups:
Internal code (no checks)
Externally invoked code (Annotated with an "externally invoked" annotation, same as Externally implemented, but adding methods to interfaces
and abstract classes is allowed)
Externally implemented code (Assumed default. Full backwards compatibility required *unless* an interface is annotated with
a defined adaptor annotation, in which case full backwards compatibility is required for the adaptor class, but the rules of @ExternallyInvoked
apply to the interface itself)
Clirr is a tool that checks Java libraries for binary and source compatibility with older releases.
Basically you give it two sets of jar files and Clirr dumps out a list of changes in the public API.
The clirr-maven-plugin can be configured to break the build, if it detects incompatible api changes.
In a continuous integration process, the clirr-maven-plugin can automatically prevent accidental
introduction of binary or source compatibility problems. Additionally, the plugin can generate
a report as part of the generated site.
Group: org.neo4j.build.plugins Artifact: clirr-maven-plugin
Show all versions Show documentation Show source
Show all versions Show documentation Show source
0 downloads
Artifact clirr-maven-plugin
Group org.neo4j.build.plugins
Version 1.0.1
Last update 09. November 2015
Organization not specified
URL Not specified
License The Apache Software License, Version 2.0
Dependencies amount 14
Dependencies clirr-core, bcel-findbugs, maven-artifact, maven-model, maven-plugin-api, maven-project, doxia-decoration-model, doxia-module-xhtml, doxia-sink-api, doxia-site-renderer, maven-reporting-api, plexus-i18n, plexus-utils, junit,
There are maybe transitive dependencies!
Group org.neo4j.build.plugins
Version 1.0.1
Last update 09. November 2015
Organization not specified
URL Not specified
License The Apache Software License, Version 2.0
Dependencies amount 14
Dependencies clirr-core, bcel-findbugs, maven-artifact, maven-model, maven-plugin-api, maven-project, doxia-decoration-model, doxia-module-xhtml, doxia-sink-api, doxia-site-renderer, maven-reporting-api, plexus-i18n, plexus-utils, junit,
There are maybe transitive dependencies!
pact-jvm-provider-spring_2.12 from group au.com.dius (version 3.6.15)
# 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 the [Pact JUnit 4](../pact-jvm-provider-junit) or [Pact JUnit 5](../pact-jvm-provider-junit5) providers 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.12
Show all versions Show documentation Show source
Show all versions Show documentation Show source
1 downloads
Artifact pact-jvm-provider-spring_2.12
Group au.com.dius
Version 3.6.15
Last update 29. April 2020
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-provider-junit_2.12, spring-boot-starter-test, spring-webmvc, javax.servlet-api, jackson-datatype-joda,
There are maybe transitive dependencies!
Group au.com.dius
Version 3.6.15
Last update 29. April 2020
Organization not specified
URL https://github.com/DiUS/pact-jvm
License Apache 2
Dependencies amount 5
Dependencies pact-jvm-provider-junit_2.12, spring-boot-starter-test, spring-webmvc, javax.servlet-api, jackson-datatype-joda,
There are maybe transitive dependencies!
Page 3 from 3 (items total 36)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy