Java Technologies - Lab 11
[valid 2025-2026]
Testing and Deploying
This is the final step of our project.
Compulsory (1p)
- Write unit tests for: one service class and one controller (use
@WebMvcTest and @MockBean).
- Mock dependencies using Mockito
- Ensure tests cover at least: one happy path, one error scenario.
Homework (2p)
- Create a Dockerfile for the application. Build and run the container locally.
- Implement a simple CI/CD pipeline.
- Use Testcontainers in order to check that DB schema is created automatically and test CRUD operations for an entity.
Advanced (2p)
- Simulate real production deployment using Kubernetes.