Learn how to configure additional source directories in Maven.
Search Results for: addition
Introduction to Mockito’s AdditionalAnswers
A quick and practical guide to Mockito’s AdditionalAnswers.
Java 11 String API Additions
Learn about additions to the String API in Java 11.
Java 9 java.util.Objects Additions
Learn about the new utility methods introduced in the java.util.Objects class in Java 9.
Java 9 Optional API Additions
Quick and practical examples of new methods in Optional API in Java.
Introduction to JavaParser
A quick and practical guide to JavaParser.
Convert InputStream to Stream in Java
Learn how to take an InputStream and convert it into a functional Stream in Java.
Perform Action Only if All Optionals Are Available
Learn how to perform an action only if all optionals are available.
Convert Jackson JsonNode to Typed Collection
Explore different methods of converting Jackson’s raw data type JsonNode into typed Java collections.
Convert an Optional to an ArrayList in Java
Explore various approaches to converting Optional to ArrayList.
Full and Partial Text Search in MongoDB
Explore how to do full and partial text searches in MongoDB.
Inheritance vs. Composition in JPA
Explore the fundamental differences between inheritance and composition in JPA entity modeling.
OpenAPI Custom Generator
Learn the steps required to create a custom generator for the OpenAPI generator tool.
Collecting into Map using Collectors.toMap() vs Collectors.groupingBy()
Learn about the difference between toMap and groupingBy when collecting a Java Stream into a Map.
How to Implement Elvis Operator in Java 8
Implement the Elvis operator in Java 8 using the Optional class and ternary operator.
Mapping Enum to String Using MapStruct
A quick tutorial on using MapStruct to convert enums to strings.
How to Unit Test an ExecutorService Without Using Thread.sleep()
Learn how to unit test an ExecutorService instance without using the Thread.sleep() method.
Get JSON Content as Object Using MockMVC
Explore several ways to get JSON content as an object using MockMVC and Spring Boot.
Introduction to Java 22
Explore the latest Java release, Java 22, which is now in General Availability.
Difference Between Lombok @AllArgsConstructor, @RequiredArgsConstructor and @NoArgConstructor
Learn about different constructor generation annotations in Lombok and when to use them.