Testing & Engineering
JUnit 5, integration testing, logging, the secrets of packaging and Docker deployment.
5 tutorials
01Unit Testing: JUnit 5 and MockitoWhy tests feel like a burden, then JUnit 5 assertions, @Mock/@InjectMocks stubbing, parameterized tests and naming — with a runnable service-layer test suite.Intermediate56′02Integration Testing: @SpringBootTest and Slice TestsWhen do you need a real container? The four webEnvironment modes, @WebMvcTest/@DataJpaTest slices, MockMvc end-to-end assertions and Testcontainers for a real database.Intermediate50′03Logging: The SLF4J Facade and Logback in PracticeWhy facades matter, how to use levels, how to write logback-spring.xml, and how MDC carries a traceId across a request — turning logging from println into a searchable engineering capability.Intermediate61′04Packaging and Running: Fat Jars and Graceful ShutdownWhy does one jar run standalone? Open up the fat jar, meet LaunchedURLClassLoader, then add startup flags, graceful shutdown and a systemd unit.Intermediate33′05Docker Deployment: Image Layers and ComposeWrite a production-grade Dockerfile: multi-stage builds, slim images, layer caching — then bring up app + MySQL + Redis with a single Compose file.Intermediate72′