JUnit 5 for Kotlin Developers

2021 VietMX 0

1. Introduction The newly released JUnit 5 is the next version of the well-known testing framework for Java. This version includes a number of features that specifically target […]

JUnit 5 @Test Annotation

2021 VietMX 0

1. Overview In this article, we’ll make a quick review of JUnit’s @Test annotation. This annotation provides a powerful tool for performing unit and regression testing. 2. […]

A Guide to JUnit 5

2021 VietMX 0

1. Overview JUnit is one of the most popular unit-testing frameworks in the Java ecosystem. The JUnit 5 version contains a number of exciting innovations, with the […]

Guava CharMatcher

2021 VietMX 0

1. Remove Special Characters from a String Let’s start by removing all special characters from a String. In the following example, we remove all characters that aren’t […]

Java InputStream to String

2021 VietMX 0

1. Overview In this tutorial, we’ll look at how to convert an InputStream to a String. We’ll start by using plain Java, including Java8/9 solutions, then look into […]

Convert char to String in Java

2021 VietMX 0

1. Introduction Converting char to String instances is a very common operation. In this article, we will show multiple ways of tackling this situation. 2. String.valueOf() The String class has a […]

Format ZonedDateTime to String

2021 VietMX 0

1. Overview In this quick tutorial, we’ll see how to convert a ZonedDateTime to a String. We’ll also look at how to parse a ZonedDateTime from a String. 2. Creating a ZonedDateTime […]