-
Core Java
Test Data Builders and Object Mother: another look
Constructing objects in tests is usually a painstaking work and usually it produces a lot of repeatable and hard to…
Read More » -
Core Java
Listing a ZIP file contents with Stream API in Java 8
In Java 8 java.util.zip.ZipFile was equipped with a stream method that allows navigating over a ZIP file entries very easily.…
Read More » -
Enterprise Java
Spring 4: @DateTimeFormat with Java 8 Date-Time API
@DateTimeFormat annotation that was introduced in Spring 3.0 as a part of Formatter SPI can be used to to parse…
Read More » -
Core Java
Parsing a file with Stream API in Java 8
Streams are everywhere in Java 8. Just look around and for sure you will find them. It also applies to…
Read More » -
Core Java
Spice up your test code with custom assertions
Inspired by the @tkaczanowski talk during GeeCON conference I decided to have a closer look at custom assertions with AssertJ…
Read More » -
Enterprise Java
HOW-TO: Quartz Scheduler with Clustering in JEE application with MySQL
Quartz Scheduler is one of the most popular scheduling library in Java world. I had worked with Quartz mostly in…
Read More » -
Enterprise Java
Spring MVC and Thymeleaf: how to acess data from templates
In a typical Spring MVC application, @Controller classes are responsible for preparing a model map with data and selecting a…
Read More » -
Enterprise Java
HOW-TO: Spring Boot and Thymeleaf with Maven
Spring Boot is a great piece of software allowing you to bootstrap Spring application within a few seconds. And it…
Read More » -
Core Java
Yet another way to handle exceptions in JUnit: catch-exception
There are many ways of handling exceptions in JUnit (3 ways of handling exceptions in JUnit. Which one to choose?,…
Read More »