Spring Tip: Check for existence of Bean during startup
Sometimes we are working on an application where we have no control over specific Spring bean implementations. Nevertheless we want to check for the existence (or duplication) of these bean...
View ArticleCompare JAR files content; decompiling class files
When I was recently working on a large restructuring and refactoring where I also replaced Ant by Maven, it was really necessary to compare the complete content of two different JAR files. It was...
View ArticleAngular Goodness: Directive with format and input placeholders
A working example of this blog post can be found here. This directive accepts a format, a model (with a String array) and an output. The directive should create custom HTML of the format with all the...
View ArticleIntelliJ IDEA code coverage highlight line
By default the IntelliJ IDEA code coverage reporter only shows a small red/green indicator in the margin. If you want the whole line to be highlighted red/green you can adjust that yourself by changing...
View ArticleHow to test for an exception in JUnit
Testing for exceptions in JUnit is something we have to deal with! We want to test if an exception occurs in a particular situation, or even if the exception contains a particular message. The question...
View Article