Testing a Spring Boot monolith
| .mvn/wrapper | ||
| src | ||
| .gitattributes | ||
| .gitignore | ||
| mvnw | ||
| mvnw.cmd | ||
| perfs.jmx | ||
| pom.xml | ||
| README.md | ||
perftests-springboot
This is a test for Spring Boot to handle large projets, in quantity of objects to manage.
To use this project, you have to generate the actual code:
- Set the root path in
src/main/java/fr/spacefox/perftests/springboot/generator/Generator.javaconstantROOT_PATHto the actual path of your project sources. - You may change the number of elements to generate with
ELEMENTSin the same file. - Run the Generator: now you have a giant Spring Boot project ready to be used!
- Build and play! Caution: tests will relaunch the PostgreSQL stack on each test therefore are very slow!
- You can run some kind of performance tests by using
perfs.jmxin Apache JMeter
See also the Quarkus version.
Requirements:
- JRE ⩾ 21
- PostgreSQL (you may use
src/test/docker/compose.yaml)
Generated arborescence kind of follow the hexagonal / ports & adapters architecture:
fr.spacefox.perftests.springboot
.core
.port
.data
EntityNDatasourcePort.java
.serviceN
.model
ModelN.java
ServiceN
.data
.entityN
EntityN.java
EntityNRepository.java
Mapper.java
.rest
.endpointN
.schema
SchemaN.java
EndpointNResource.java
Mapper.java
PerftestsSpringbootApplication.java
+ tests