Download JAR files tagged by restcontroller with all dependencies
advancedcontroller-spring-boot-starter from group com.github.kernol-info (version 0.0.1)
@AdvancedController是一个增强型的RestController注解,可以使用接口来定义Controller类,自动匹配Service类并调用Service中的方法。
Group: com.github.kernol-info Artifact: advancedcontroller-spring-boot-starter
Show documentation Show source
Show documentation Show source
0 downloads
Artifact advancedcontroller-spring-boot-starter
Group com.github.kernol-info
Version 0.0.1
Last update 31. March 2020
Organization not specified
URL https://github.com/kernol-info/advanced-controller
License Apache License, Version 2.0
Dependencies amount 1
Dependencies spring-boot-starter-web,
There are maybe transitive dependencies!
Group com.github.kernol-info
Version 0.0.1
Last update 31. March 2020
Organization not specified
URL https://github.com/kernol-info/advanced-controller
License Apache License, Version 2.0
Dependencies amount 1
Dependencies spring-boot-starter-web,
There are maybe transitive dependencies!
easypeel-method-security from group io.github.easypeel-security (version 0.0.3)
Group: io.github.easypeel-security Artifact: easypeel-method-security
Show all versions Show documentation Show source
Show all versions Show documentation Show source
0 downloads
easypeel-security from group io.github (version 0.0.0)
Configure method-level security easily in your RestController
Artifact easypeel-security
Group io.github
Version 0.0.0
Last update 29. January 2024
Organization not specified
URL https://github.com/easypeel-security/easypeel-method-security/
License The Apache License, Version 2.0
Dependencies amount 0
Dependencies No dependencies
There are maybe transitive dependencies!
Group io.github
Version 0.0.0
Last update 29. January 2024
Organization not specified
URL https://github.com/easypeel-security/easypeel-method-security/
License The Apache License, Version 2.0
Dependencies amount 0
Dependencies No dependencies
There are maybe transitive dependencies!
xss.filter from group com.github.techguy-bhushan (version 2.0.0)
Group: com.github.techguy-bhushan Artifact: xss.filter
Show all versions Show documentation Show source
Show all versions Show documentation Show source
9 downloads
spring-boot-logging-web from group io.github.goetschalckx (version 0.1.0)
0 downloads
data-search-api from group com.github.magrifle (version 2.0.13)
A library that helps you instantly turn your Spring powered endpoints into a query engine. It makes use
of AOP to intercept the calls to your Controller or RestController endpoints and then builds a Specification
from the provided query parameters
Group: com.github.magrifle Artifact: data-search-api
Show all versions Show documentation Show source
Show all versions Show documentation Show source
0 downloads
Artifact data-search-api
Group com.github.magrifle
Version 2.0.13
Last update 28. September 2024
Organization not specified
URL https://github.com/magrifle/search-api
License The Apache License, Version 2.0
Dependencies amount 1
Dependencies guava,
There are maybe transitive dependencies!
Group com.github.magrifle
Version 2.0.13
Last update 28. September 2024
Organization not specified
URL https://github.com/magrifle/search-api
License The Apache License, Version 2.0
Dependencies amount 1
Dependencies guava,
There are maybe transitive dependencies!
restful-api from group com.github.salemebo (version 0.2.8)
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 1 from 1 (items total 8)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy