JUnit 5 beginners' cheat sheet
Quick introduction to JUnit 5. Consider this as a cheat sheet to help you work with JUnit
Quick introduction to JUnit 5. Consider this as a cheat sheet to help you work with JUnit
Overview This tutorial shows you what equals and hashCode are and how to properly override them. If you have written in Java long enough, you will learn that using the equals method instead of == is the right way to assert equality. This is because the == operator compares the two objects’ memory addresses. The … Read more
Overview There are times you work with legacy databases that store boolean values as strings. Let’s consider this example: Town A conducted a survey to see if their citizens like apples or not. The developer back then created a table like this: For the file like_apple, he planned to store LIKE and DONOT as values … Read more
Learn how to setup Redis cache in your Spring boot application
How to quickly integrate FlywayDB to Spring Boot application
Overview CountDownLatch, as the name suggests, it provides a countdown mechanism. One use case of this class is to block the calling thread until all other specified threads are complete. It sounds vague, doesn’t it? Let’s consider one concrete example to boost our understanding. CountDownLatch Mechanism The principle of CountDownLatch is you create a countdown … Read more