Learn how to conduct unit and integration tests on Spring AOP aspects.
Search Results for: add
Convert 2D Array Into 1D Array
Learn how to convert a two-dimensional array into a one-dimensional, which is commonly known as flattening.
Finding The Index of the Smallest Element in an Array
Learn how to find the index of the smallest element in an array.
Authenticate Using Social Login in Spring Authorization Server
Learn how to set up a Spring Boot maven project using the OAuth2 social login feature.
Converting Float ArrayList to Primitive Array in Java
Learn how to convert an ArrayList of wrapper classes into an array of primitives.
How to Use Pair With Java PriorityQueue
Learn how to use Comparators with PriorityQueues and how to change the sorting order in such queues.
Print Distinct Characters of a String in Java
Explore various approaches to handling and processing unique characters.
Compare the Numbers of Different Types
Learn how to compare primitives and numbers of different classes, such as Integers, Longs, and Floats.
Convert From int to short in Java
Learn how to convert from an int primitive to a short primitive in Java.
Spring WebClient exchange() vs retrieve()
In this article, we explore the key methods from the WebClient interface, including retrieve(), exchangeToMono(), and exchangeToFlux().
Resolving Security Exception: java.security.UnrecoverableKeyException: Cannot Recover Key
Learn everything you need to know about java.security.UnrecoverableKeyException – what causes it and how to fix it.
Intro to Apache Commons Configuration Project
Apache Commons Configuration can be used to allow us to specify configuration parameters to be loaded at runtime by our application. We look at a few use cases and types of configuration files.
Get Nextval From Sequence With Spring JPA
Explore a few approaches for fetching the next value from a database sequence using Spring Data JPA.
Get 2’s Complement of a Number in Java
Learn how to get the 2’s complement of a number in Java.
Continue the Test Even After Assertion Failure in TestNG
Learn how to make multiple assertions using TestNG’s SoftAssert and find out why that is a valuable tool for writing clean tests with reduced debugging time.
Role-Based Access Control in Quarkus
Explore the RBAC system and learn how to leverage the Quarkus framework to implement it.
Unit Test for hashCode() in Java
Explore the importance of unit testing for the hashCode() method in Java.
BigDecimal equals() vs. compareTo()
Explore the differences between BigDecimal equals() and compareTo() methods.
How to Fix EOFException in Java
In this quick tutorial, we learn how to fix the java.io.EOFException, a special type of IOException.
Converting Image to BufferedImage in Java
A quick and practical guide to converting images to BufferedImage in Java.