Learn how to test an LDAP server using a Java client
This is the standard author on the site. Most articles are published by individual authors, with their own profiles, but when multiple people have a strong contribution, we publish collectively here.
Here's what I've written (so far):
Explore different possibilities to create thread-safe Set instances and emphasized the differences between them.
Learn how to access the EntityManager directly when working on a Spring Data application.
Learn how to use IdentityHashMap in Java
A quick and practical guide to generating a secure AES key in Java.
Revisiting transactional, dynamic, and partial updates, JPA flush modes, Kafka vs Chronicle, and the real cost of attrition!
Learn about the Cassandra batch query and how to apply it in Cqlsh and Java using BatchStatement.
Sometimes we need our unit tests to be able to access the name JUnit has allocated to them. This is especially useful when using name generators or parameterized tests. We look at how to solve this problem in both JUnit 4 and 5.
Learn how to convert a Maven build to a Gradle build.
In this article, we’ll learn to find all the jars containing a particular class.
A quick and practical guide to Java 15’s Hidden Classes.
Learn all about the InstantSource interface introduced in Java 17. Understand what problems it addresses, and how to use it.
All about distributed systems: fault tolerant JVM, circuit breaker for RestTemplate, tracing in Spring Boot and replicated log. Also, catching errors in Java and risk of micro-dependencies!
TestNG is a unit testing library which can be run via the IDE and build tooling. We look at how to run TestNG tests directly with the command line.
Producing a string out of repeating a character or sequence can be done a variety of ways. We look at a few methods, and compare them for readability and efficiency.
Learn about the “Failed to Load ApplicationContext” error message when running Junit tests with the Spring Controller, and how to fix it.
A quick and practical guide to Java SequenceInputStream class.
Learn how to test a REST service that uses Keycloak for authentication and authorization with Swagger UI
Happy New Year 🙂
An interesting set of articles this week, from HTTP to persistence optimization and some Dilbert.
Learn the differences between the equals() and the contentEquals() methods of the String class in Java using practical examples.