https://github.com/knowledgefactory4u/spring-boot-test-examples
https://github.com/knowledgefactory4u/spring-boot-test-examples
integrationtesting junit5 spring-boot springboot3-x testslices
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/knowledgefactory4u/spring-boot-test-examples
- Owner: knowledgefactory4u
- License: gpl-3.0
- Created: 2023-11-10T14:07:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-13T18:32:43.000Z (10 months ago)
- Last Synced: 2025-03-25T17:23:32.716Z (about 2 months ago)
- Topics: integrationtesting, junit5, spring-boot, springboot3-x, testslices
- Language: Java
- Homepage: https://www.knowledgefactory.net/p/spring-boot-test.html
- Size: 104 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot Testing examples
# 1. @RestClientTest
Testing REST Clients With @RestClientTest# 2. @JsonTest
Testing JSON Serialization and Deserialization With @JsonTest# 3. @WebFluxTest
Testing Spring WebFlux Controller with @WebFluxTest# 4. @WebMvcTest
Testing Spring Web Controller with @WebMvcTest# 5. @DataJpaTest
Testing a JPA application With @DataJpaTest# 6. @DataJdbcTest
Testing Spring Data JDBC application with @DataJdbcTest# 7. @JdbcTest
Testing JDBC components with @JdbcTest# 8. @DataMongoTest
Testing a MongoDB application with @DataMongoTest# 9. Integration Testing with Testcontainers
Spring Boot 3 + PostgreSQL - Integration Testing with Testcontainers - Example# 10. Testing a JPA application with @DataJpaTest and Testcontainers
Testing a JPA application with @DataJpaTest and Testcontainers# 11. Spring Boot MongoDB - Integration Testing with Testcontainers
Spring Boot MongoDB - Integration Testing with Testcontainers# 12. Testing a Data MongoDB application with Testcontainers and @DataMongoTest
Spring Boot - Testing a Data MongoDB application with Testcontainers and @DataMongoTest# Local setup
Step 1: Download or clone the source code from GitHub to the local machine
Step 2: ```mvn clean install```
Step 3: ```mvn test```