The previous part of this tutorial described the structure of a Spock specification and helped us to write our first specification. Although it is important to understand the basics, our specifications are not very useful because we don't know how we can describe the expected behavior of the system under specification. This blog post fixes […] Read More
Programming
Spring Batch Tutorial: Introduction
Most enterprise applications rely heavily on batch jobs. They run during the night and do all the time consuming tasks that cannot be done during business hours. These tasks are often critical to the business and errors can cause serious damage (i.e. cost a lot of money). That's why it is important to write robust […] Read More
Writing Unit Tests With Spock Framework: Introduction to Specifications, Part One
When we are writing unit tests with Spock Framework, we have to create so called specifications that describe the features of our application. This blog post provides an introduction to Spock specifications, and will help us to create our first specification and understand its structure. Let's start by creating our first Spock specification. Additional Reading: […] Read More
Spring From the Trenches: Creating PDF Documents With Wkhtmltopdf
When we are writing a web application, we often face a requirement which states that our application must provide reporting to its users. Typically the users of our application want to see these reports on the user interface and have the possibility to export them as Excel and/or PDF documents. The problem is that creating […] Read More
Generating HTML Documentation From RAML Documents With Maven
The RESTful API Modeling Language (RAML) is a YAML -based language that is used for describing REST(ful) APIs. I like the RAML syntax because it's text based, versatile, and easy to use. However, when I publish a REST API, I must provide readable API documentation or no one will use my API. This blog post […] Read More
Spring Data JPA Tutorial: Adding Custom Methods to All Repositories
The previous part of this tutorial taught us how we can add custom methods into a single repository. Although that is a very useful skill, it doesn't help us when we have to add the same method into all repositories of our application. Luckily for us, Spring Data provides a way to add custom methods […] Read More