life is too short for a diary



Posts Tagged: java

Integration Test for redis / valkey using TestContainers

An integration test verifies that multiple components work together correctly within the full Spring context. Unlike unit tests, it loads the entire application context, including configuration, beans, and external dependencies like databases...

Continue reading → valkey redis spring boot java



Mastering Parameterized Tests in JUnit 5 with Spring Boot

Want to test smarter, not harder? Parameterized tests let you run the same test with multiple inputs. In this guide, we'll dive into JUnit's `@ParameterizedTest` using `@MethodSource` and `@CsvSource`, plus how to hook it all into Spring Boot...

Continue reading → java spring boot



Mastering JSON in Java using Jackson

JSON(Javascript Object Notation) is the universal language for data exchange in modern applications, particularly when working with REST APIs. In Java, Jackson library is often used for JSON processing. ..

Continue reading → java