Posts within the Java category

Featured image for "Mapping beans with MapStruct"
Java

Mapping beans with MapStruct

Object mapping is a common practice in developing apps when you need to get across the different tiers. MapStruct is a framework for mapping objects.

Read more →
Featured image for "Handling errors with Spring MVC"
Java

Handling errors with Spring MVC

When developing applications, error handling is a common job. With Spring MVC you can easily handle exceptions using a few annotations.

Read more →
Featured image for "JPA made easy with Spring data's repositories"
Java

JPA made easy with Spring data's repositories

With Spring Data it's very easy to create a simple CRUD application without the hassle of creating your own DAO's. Spring Boot makes it even easier for you.

Read more →
Featured image for "Writing your first Spring webapp with Spring Boot"
Java

Writing your first Spring webapp with Spring Boot

Spring boot changed the Java and Spring landscape. In this tutorial I'll write a small Spring webapp in about 70 lines of Java code.

Read more →
Featured image for "Securing your REST API with Spring Security"
Java

Securing your REST API with Spring Security

In this tutorial I'm going to write a small REST API with Spring Boot and Spring Web MVC. Securing the application will be done with Spring Security.

Read more →
Featured image for "Testing modern web applications"
Java

Testing modern web applications

There are a lot of aspects that have to be covered while testing modern web applications. In this tutorial series I would like to talk about these aspects.

Read more →
Featured image for "Testing your Spring Boot application with Selenium"
Java

Testing your Spring Boot application with Selenium

Functional testing never has been easier with Spring Boot and FluentLenium, a wrapper framework for Selenium, using a fluent API.

Read more →
Featured image for "Testing your Spring Data JPA repository"
Java

Testing your Spring Data JPA repository

Spring Data allows you to create repositories by writing a simple interface. In this article I'll write some integration tests for a repository using DBUnit

Read more →
Featured image for "Executing Jasmine tests with Maven"
Java

Executing Jasmine tests with Maven

In modern webapps, you will be using more than just Java. You will write JavaScript code too. With Maven + Jasmine you can test your JavaScript code.

Read more →
Featured image for "Unit testing with Mockito and AssertJ"
Java

Unit testing with Mockito and AssertJ

Unit testing is a very important part in development. In this example I show you how easy it is, using Mockito and AssertJ.

Read more →