Using Junit Test Name

Name your tests When we create Junit test usually there is no practical use of the name of the method. The Junit runner uses reflection to discover the test methods and since version 4 you are not restricted to start the name of the method with test anymore. The name of the test methods are there for documentation purpose. There ...

Read More »

WildFly Swarm: Building Microservices with Java EE

¨Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away¨ Antoine de Saint-Exupery This quote by the French writer Antoine de Saint-Exupery was made to substantiate that often less is more. This is true for architect, artist, designer, writer, running, software developer, or in any other profession. Simplicity, minimalism, cutting down the cruft always goes ...

Read More »

Impulse: “Crafted Design”

About half a year ago I urged you to watch Robert C. Martin’s talk Architecture – The Lost Years. It argued in favor of a design that clearly displays the application’s domain (e.g. logical units, services, use cases, …) and keeps auxiliary aspects (e.g. delivery mechanism, persistence, …) on the sidelines. While I really liked the talk, it was fairly ...

Read More »

Netflix Archaius for property management – Basics

java-interview-questions-answers

Netflix Archaius provides a neat set of features to load dynamic properties into an application. This blog post is just a documentation of the extent of Archaius that I have understood, there is much more to it than I have documented here, but this should provide a good start:     Default Behavior Consider a simple properties file: stringprop=propvalue listprop=value1, ...

Read More »

WildFly 9 on NetBeans, Eclipse, IntelliJ, OpenShift, and Maven

WildFly 9 CR1 was recently released. Lots of cool features are included: Intelligent load balancing HTTP/2 and SPDY support A new offline CLI mode Graceful single node shutdown A new Servlet-only distribution And this is above the usual Java EE 7 compliance! This blog is a quick check to verify that it works in all three major IDEs and OpenShift. ...

Read More »