-
Core Java
Java 21 Unnamed Patterns and Variables
In the world of Java 21, the introduction of the unnamed patterns and variables feature (JEP-443) endeavors to achieve a…
Read More » -
junit
Mock Same Method with Different Parameters
When creating a mock for a Java method, it proves beneficial to obtain varied responses depending on the provided parameters.…
Read More » -
spring
Query With IN Clause in Spring Data Cassandra
Spring Data Cassandra is a powerful extension of the Spring Data project, designed to simplify the integration of Apache Cassandra…
Read More » -
junit
Constructor Unit Testing with Mockito
Constructor unit testing with Mockito is a task Java developers come across really often. In this brief tutorial, we will…
Read More » -
Kafka
JSON File To Kafka Topic
Apache Kafka, a streaming platform that is open-source, fault-tolerant, and exceptionally scalable, operates on a publish-subscribe architecture for real-time data…
Read More » -
junit
JUnit Assert Regex Matches
JUnit is often the initial preference for developers when conducting unit tests on Java code. In practical situations, a frequent…
Read More » -
junit
Test Main Method with JUnit
The entry point for any Java application is the main() method, and its structure can vary based on the application…
Read More » -
spring
How to load custom properties files in Spring Boot?
The @PropertySource annotation in Java is a component of the Spring Framework, specifically used for externalizing configuration. Employed on a…
Read More » -
spring
Testing Spring Data JPA with @DataJpaTest
Today, Unit Testing holds significant importance, and the Spring Framework offers the @DataJpaTest annotation to simplify the process of writing…
Read More » -
Core Java
Create Java Objects Using Class Names
The Java Reflection API provides several methods to achieve this goal. Nevertheless, identifying the most appropriate one for the current…
Read More »