If you're thinking about trying Mockito out for unit testing, this article provides a comprehensive guide to injecting mocks and mocking methods, including void methods.
Another JDK, another command line tool. Here, we delve into jhsdb, which you can use to launch a postmortem debugger to analyze the data from crashed JVMs.
Have you ever worked on software where the access rules are based not only on user's role but also on the specific entity that role was granted? You will probably find Attribute-Based Access Control very useful — this article will tell you how.
Some Java performance optimization tricks include starting with minimum heap allocation, using a StringBuilder instead of the + operator, and avoiding Iterator.
In Part 1 in this comprehensive series on parsers (with a focus on Java), we examine how parsers work, the difference between Parse Trees and ASTs, and more.
You might see Spring's DelegatingFilterProxy crop up sometimes. It's actually a proxy for a standard Servlet Filter. Let's see an example in action with Spring Security.
VisualVM is one of those indispensable tools for Java (and JVM-based) developers. An oft-unsung hero, this post tells you what it is, how to set it up, and its benefits.
JUnit 5 will be out soon! With the new Jupiter API, a focus on extensibility, and a huge integration overhaul, it promises to make testing easier than ever.
In Part 4 of this Java 9 series, we see that try-with-resources has been enhanced. Let's compare how Try With Resources worked back in Java 7 versus today.
When creating audit logs, consider using Spring Data. Its JPA functionality allows for EntityListeners and callback methods to update the needed properties.
No longer do you have to manage multiple Dockerfiles and use the Builder Pattern. Now, you can save time by creating a multi-stage build process for your Java apps.