Java Development
-
Mockito mock static method example
In this article, I am going to show you how to mock static methods using Powermockito. PowerMock is an open source…
Read More » -
Logback Syslog Example
Logging is an essential part of a program. We can trace the flow of the program, we can find out…
Read More » -
XPath innertext selection example
In this example we will learn how to select a node with a given inner text using XPath. We will start…
Read More » -
XPath count example
In the previous example, we studied how to use the XPath Concat method. In this example, we will see how…
Read More » -
Tomcat clustering and session replication tutorial
1. Introduction In this example we will discuss Apache Tomcat Servlet/JSP container’s clustering and session replication related configurations. Apache Tomcat…
Read More » -
JavaFX Dialog Example
This article shows examples of JavaFX 8 dialogs. The Dialog class is defined in the javafx.scene.control package. The Dialog is…
Read More » -
Java 7 New IO API Example
1. Introduction Java NIO (New IO) is an alternative IO API for Java (from Java 1.4) – it was deemed…
Read More » -
javax.swing.JLayer Example: A new Swing Feature in Java 7
This is a example for JLayer class in javax.swing package. JLayer is a new swing feature in Java 7. In…
Read More » -
Powermock – Mockito Integration Example
Most of the mocking frameworks in Java, including Mockito, cannot mock static methods or final classes. If we come across…
Read More » -
XPath ends-with example
In this example we will learn how to use the ends-with function of XPath. We will start with the introduction of…
Read More »