This repository contains unit and integration tests for a Spring-based Java application using Gradle as the build tool. The tests ensure the correctness and reliability of the application's core functionalities.
- Java (JDK 21+ recommended)
- Spring Boot
- JUnit 5 for unit testing
- Testcontainers for integration testing
- Gradle for dependency management and build automation
|-- src
| |-- test
| |-- java
| |-- com.example.demo
| |-- repository # Unit for repository layer
| |-- util # Utilities
|-- build.gradle.kts
|-- settings.gradle.kts
|-- README.md
gradle test- Place unit tests under
src/test/java/com/example/demo/and choose layer for test - Use JUnit 5 (
@Testannotation) for writing tests. - Use
@SpringBootTestfor integration tests requiring Spring context.
- Fork the repository.
- Create a new branch (
feature/new-test). - Commit your changes.
- Open a pull request.
This project is licensed under the Apache License.