Core Java
-
JUnit Integration Test Example
1. Introduction Integration tests are test cases that test highly coupled external services. A great example of this is services…
Read More » -
Gradle War Plugin (& Tomcat) Example
In this example, we will learn how to package a WAR File and how to deploy it on Tomcat server,…
Read More » -
Lucene Query Parser Example
In this Example , we are going to learn about Lucene QueryParser class. Here, we go through the simple and…
Read More » -
JUnit Best Practices
1. Introduction There are a lot of ways on how a developer can do JUnit test cases, but overall it…
Read More » -
Groovy Closure Example
In this example I’ll explain closures in Groovy. According to Sabesta’s nice book Concepts of Programming Languages, defining a closure…
Read More » -
JUnit NetBeans Example
1. Introduction In this post I will introduce the basics of writing and running JUnit unit tests in NetBeans IDE.…
Read More » -
Gradle NetBeans Example
In this example, we will explain how to integrate Gradle with NetBeans IDE and how to perform basic Gradle tasks.…
Read More » -
JUnit Test Suite Example
1. Introduction A JUnit Test suite is used to bundle multiple test cases together in a single run. This is…
Read More » -
Spring Batch Partitioning Example
Most often, batch processing using Spring Batch is carried out in a single-threaded, single process operation. But sometimes, one may…
Read More » -
JUnit Exception Handling Example
1. Introduction There are popular ways to test exception in JUnit. A developer can use the traditional try-catch statement, the…
Read More »