Core Java
-
Crashing your JVM
Thorough testing can be harmful as we discovered recently. Extending our test coverage led us to a several-hours debugging session…
Read More » -
Preventing System.exit calls
When developing containers that run code written by other developers it is prudent to safe-guard against System.exit calls. If a…
Read More » -
HOW TO: Stereotyping a java Class
In this HowTo post I will show how we can stereotype a class with another class. Why is this useful?…
Read More » -
Stacktraces are telling the truth. But not the whole truth.
Our company is all about making the cause of software errors transparent to developers and operations. As opposed to alternative…
Read More » -
A JUnit Rule to Conditionally Ignore Tests
I always believed that using @Ignore to deactivate tests is a bad idea. Except, maybe as one way to put…
Read More » -
Analyze package dependencies with structure101
One key to a stable application is a well-structured codebase. We know that we should build as many black boxes…
Read More » -
Native Java Packaging with NetBeans 7.4
One of the new features of NetBeans 7.4 that made the “NetBeans 74 NewAndNoteworthy” page is “Native Packaging,” which is…
Read More » -
3 ways of handling exceptions in JUnit. Which one to choose?
In JUnit there are 3 popular ways of handling exceptions in your test code: try-catch idiom With JUnit rule With…
Read More » -
Java: Schedule a job to run on a time interval
Recently I’ve spent some time building a set of tests around rolling upgrades between Neo4j versions and as part of…
Read More »