Category: Java
Selenium Chrome WebDriver Test Cases with JUnit in Java
In this example we will show you how to run Selenium Chrome WebDriver Test Cases with JUnit in Java. In order to run Selenium Chrome Test Cases you need the ChromeDriver which you can...
Sorted Set Example – Ascending or Descending by comparator
In this Sorted Set example we show you how you can sort a java.util.Set in ascending or descending order using a java.util.TreeSet. The java.util.TreeSet sorts the entries in natural order, which means that all...
Sorted Map Example – By Value or By Key or By Comparator
In this Sorted Map Example we will show how you can sort a java.util.Map using the java.util.TreeMap Class. We can sort collections in Ascending or Descending order by key or value. We also show...
Sorted List Example – Simple Reverse and Comparable Sort
In this Sorted List Example we will show how you can sort a java.util.List using the java.util.Collections Class. We can sort collections in Ascending or Descending order. We also show you how you can...
How to Configure Maven Character Encoding
In this example we will explain how you can configure Maven Character Encoding. There are various ways you can specify encoding for Maven. Each with there benefits and drawbacks. The problem Whenever you see...
Custom Error Handler while Validating XML against XSD Schema
In this example we create a Custom Error Handler while Validating XML against XSD. We use the javax.xml.validation.Validator to check the XML document against the XSD schema. We can create a custom error handler...
Get Line Number from XML Validation against XSD Schema
In this example we will grab the Line and column number from the validation exception while validate XML against XSD Schema. We use the javax.xml.validation.Validator to check the XML document against the XSD schema....
Validate XML against XSD Schema using Java
In this example we will Validate XML against XSD Schema. We use the javax.xml.validation.Validator to check the XML document against the XSD schema. Be careful because the validator is not thread safe. It is...
Get Last Day Of The Month From Date Object
In this example we show you how you can get the last day of the month. Most of the time we use a java.util.Date Object to represent a Date. We can use the java.util.Calendar...