Software Development

Execute specific unit test in Maven using Eclipse

Okay, your project has hundreds of unit tests, but you only need to execute one or perhaps only all tests from a JUnit test file. Maven allows for that, and

Read More...

Java, Software Development, Spring

Spring Dependency Injection Examples Without Spring Boot

The Spring Framework has come a long way. Nowadays, it is way easier to start a Java project with the Spring Framework using Spring Boot. In the past, we used

Read More...

Java, Software Development

Java Null Pointer Exception Processing With Try-Catch

In Java, we can handle exceptional events using the try-catch. But not all exceptions are the same. Java Null Pointer Exception processing requires using try-catch in a way that is

Read More...

Software Development

JUnit 4 – Run Test Method More than Once

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.

Read More...

Software Development

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.

Read More...

Software Development

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

Read More...

Software Development

Sort Lists in Java 8 using Comparator

This post demonstrates how to use Java 8 Comparator by examples.

Read More...

Software Development

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.

Read More...

Software Development

Java Compiler Weird Error in Travis CI due to Implicit Exception type

We were trying to build this Maven project in Travis CI and got a weird compilation error. After modifying the codes to explicitly define the exception types.

Read More...

Software Development

Find Out the Differences between Two Objects in Java

This post demonstrates how to find out and list the differences between two objects using a set of classes and interfaces from Apache Commons Lang.

Read More...