https://github.com/jpomykala/spring-junit5-testing
Playing with JUnit5
https://github.com/jpomykala/spring-junit5-testing
junit junit5 spring-boot testing testing-practices
Last synced: 12 months ago
JSON representation
Playing with JUnit5
- Host: GitHub
- URL: https://github.com/jpomykala/spring-junit5-testing
- Owner: jpomykala
- License: apache-2.0
- Created: 2019-01-06T19:49:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-06T20:02:07.000Z (about 7 years ago)
- Last Synced: 2025-03-02T06:29:52.066Z (12 months ago)
- Topics: junit, junit5, spring-boot, testing, testing-practices
- Language: Java
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-junit5-testing
Playing with JUnit5
Spring Boot version `2.1.1`
- Testing repository layer with `EntityManager` and `Spring Data`
- Integration tests
- `SearchingPostTest.java` fetching data using pure `EntityManager`
- `DogControllerTest.java` testing Bean Validation 2.0
Application won't run unles you provide proper database details in `application.properties`. During tests application uses H2 database.
### Running tests
Just run in terminal:
`mvn clean test`
In-memory database is used during tests.