PinnedMocking Static Classes with MockitoRecently, I needed a static mock for unit testing on a task in the apache-shenyu project. I chose to use MockedStatic instead of Powermock…May 27, 2023May 27, 2023
PinnedSQL Indexing Best PracticesBefore we show best practices, let’s look at how database indexes work. A database index is a type of data structure like an array or hash…Sep 20, 2024Sep 20, 2024
Hibernate N+1 ProblemThe N+1 query problem happens when the data access framework executed N additional SQL statements to fetch the same data that could have…Feb 15Feb 15
Quick Review of Change Data CaptureChange Data Capture (CDC) is going to enable us to capture everything in the database along with changes that happen are made to the data…Feb 10Feb 10
Unit Testing Best PracticesWhen writing a unit test, there may be points that we all know but sometimes forget. I have collected the methods I have taken notes and…Feb 8Feb 8
Measure Code Coverage with JaCoCoJaCoCo is a widely used code coverage library for Java applications. It helps developers measure how much of their code is being exercised…Feb 8Feb 8
FIRST Principle in Unit TestingAs you probably know from experience, writing reliable tests is quite a task. FIRST principles were proposed by Robert C. Martin in his…Feb 8Feb 8
Spring AI DeepSeek IntegrationYou can check the Deepseek API status here(https://status.deepseek.com/). You can subscribe to get updates about up/down status.Feb 7Feb 7