Skip to content

Commit

Permalink
Add testonly modules for springboot 3.2.x for webmvc and webflux
Browse files Browse the repository at this point in the history
  • Loading branch information
nicmunroe committed Sep 12, 2024
1 parent 266a84c commit 7d18bd9
Show file tree
Hide file tree
Showing 13 changed files with 1,718 additions and 0 deletions.
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ include "nike-internal-util",
"testonly:testonly-springboot3_0-webflux",
"testonly:testonly-springboot3_1-webmvc",
"testonly:testonly-springboot3_1-webflux",
"testonly:testonly-springboot3_2-webmvc",
"testonly:testonly-springboot3_2-webflux",
"testonly:testonly-springboot3_3-webmvc",
"testonly:testonly-springboot3_3-webflux",
// Sample modules (not published)
Expand Down
21 changes: 21 additions & 0 deletions testonly/testonly-springboot3_2-webflux/README.md
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)
44 changes: 44 additions & 0 deletions testonly/testonly-springboot3_2-webflux/build.gradle
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
Loading

0 comments on commit 7d18bd9

Please sign in to comment.