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

https://github.com/bujosa/castula

This is a simple project in spring boot for undestand how works testing
https://github.com/bujosa/castula

integration-testing java mockito spring-boot

Last synced: 8 months ago
JSON representation

This is a simple project in spring boot for undestand how works testing

Awesome Lists containing this project

README

          

# castula
This is a simple project in spring boot for undestand how works testing,
integration tests and how to use mockito and mockmvc.

## Goals

- [x] Create a simple project in spring boot
- [x] Create a single crud endpoints
- [x] Create a integration test for that endpoint

## Run Tests

We are using gradle to run tests, so you can run the following command to run all tests

```bash
./gradlew test
```

## References

- [Spring Boot](https://spring.io/projects/spring-boot)
- [Mockito](https://site.mockito.org/)
- [MockMvc](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/test/web/servlet/MockMvc.html)