forked from Nike-Inc/backstopper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testonly modules for springboot 3.2.x for webmvc and webflux
- Loading branch information
Showing
13 changed files
with
1,718 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Backstopper - testonly-springboot3_2-webflux | ||
|
||
Backstopper is a framework-agnostic API error handling and (optional) model validation solution for Java 17 and greater. | ||
|
||
(NOTE: The [Backstopper 1.x branch](https://github.com/Nike-Inc/backstopper/tree/v1.x) contains a version of | ||
Backstopper for Java 7+, and for the `javax` ecosystem. The current Backstopper supports Java 17+ and the `jakarta` | ||
ecosystem. The Backstopper 1.x releases also contain support for Spring 4 and 5, and Springboot 1 and 2.) | ||
|
||
This submodule contains tests to verify that the | ||
[backstopper-spring-web-flux](../../backstopper-spring-web-flux) module's functionality works as expected in | ||
Spring Boot 3.2.x WebFlux (Netty) environments, for both classpath-scanning and direct-import Backstopper configuration | ||
use cases. | ||
|
||
## More Info | ||
|
||
See the [base project README.md](../../README.md), [User Guide](../../USER_GUIDE.md), and Backstopper repository | ||
source code and javadocs for all further information. | ||
|
||
## License | ||
|
||
Backstopper is released under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
evaluationDependsOn(':') | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springboot3_2Version}") | ||
} | ||
} | ||
|
||
apply plugin: 'org.springframework.boot' | ||
apply plugin: "io.spring.dependency-management" | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
dependencies { | ||
implementation( | ||
project(":backstopper-spring-web-flux"), | ||
project(":backstopper-custom-validators"), | ||
"ch.qos.logback:logback-classic", | ||
"org.springframework.boot:spring-boot-dependencies:$springboot3_2Version", | ||
"org.springframework.boot:spring-boot-starter-webflux", | ||
"org.hibernate.validator:hibernate-validator", | ||
"org.glassfish.expressly:expressly:$glassfishExpresslyVersion", | ||
) | ||
testImplementation( | ||
project(":backstopper-reusable-tests-junit5"), | ||
project(":testonly:testonly-spring-webflux-reusable-test-support"), | ||
"org.jetbrains:annotations:$jetbrainsAnnotationsVersion", | ||
"org.junit.jupiter:junit-jupiter-api:$junit5Version", | ||
"org.junit.jupiter:junit-jupiter-engine:$junit5Version", | ||
"org.junit.jupiter:junit-jupiter-params:$junit5Version", | ||
"org.mockito:mockito-core:$mockitoVersion", | ||
"org.assertj:assertj-core:$assertJVersion", | ||
"io.rest-assured:rest-assured", | ||
) | ||
} | ||
|
||
// We're just running tests, not trying to stand up a real Springboot 2 server from gradle. | ||
// Disable the bootJar task so gradle doesn't fall over. | ||
bootJar.enabled = false |
Oops, something went wrong.