An open API service indexing awesome lists of open source software.

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

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.