This post demonstrates how to perform repeated tests in JUnit 4 for this post. It involves creating a class that implements the TestRule interface, another class that implements Statement interface and a new annotation.
Sort Lists in Java 8 using Comparator
This post demonstrates how to use Java 8 Comparator by examples.
Limit Depth of Inheritance in Java
[wp_ad_camp_5] This post demonstrates how to limit the depth of Inheritance in your codes. We will use a class InheritanceUtils from Apache Commons Lang. Inheritance is Evil Yes, inheritance is evil. If we subclass too much in our code base,
More Elegant way to Retry Operations in Java using Spring
This post talks about a better way to retry failed operations in Java using classes in Spring.
Using Spring Retry API
Did a method just throw an Exception? Well, we could re-invoke it a few times more before giving up using Spring’s Retry API. Last time we touched on BackOff and related interfaces and classes which is used in this API.
How to Add Android SDK in IntelliJ IDEA
This post demonstrates how to add an Android SDK in IntelliJ IDEA.
Modify XML Element Content in Java using XSLT
This post demonstrates how to modify some parts of the XML content in Java using XSLT. The example herein is rather straight-forward but will provide us a basic working codes before going further to learn the more advanced stuff.
Java, XSLT, and XML with Namespaces
When a XML uses namespaces, they need to be declared and used in the .xsl file so that the javax.xml.transform.Transformer knows how to deal with various elements in the XML. This post demonstrates how to deal with namespaces when performing transformation from or on XMLs.
JSF – Get HTTP Session Attribute
This post demonstrates how to retrieve a attribute from an HTTP Session object in JSF 2.
JSF – Check If User is Logged In with preRenderView
This post demonstrates how to check if user is logged in before the page is displayed to the user.