👋Hey there,I'm Dimitri

I like trying out new frameworks and writing about them. Below you can find the latest articles I wrote.

Testing your Spring Data JPA repository

February 16th, 2015 | 6 min read | JPA, Spring, Testing

With Spring Data JPA, persisting data is quite easy. You no longer need to write complex DAO’s or repositories, no, all you need is an interface. If you look at my Spring Boot tutorial, you will see that by writing a few lines of code for creating our interface, we’re able to read, update, delete and […]

Executing Jasmine tests with Maven

February 7th, 2015 | 6 min read | angular, AngularJS, Jasmine, JavaScript, Maven, Testing

A while ago I wrote my very first Spring Boot application and I showed you how fast it could be using Spring Boot and AngularJS. I also thought about testing all sides of the application, so I started with writing some integration tests for my REST API, then I wrote some unit tests using Mockito […]

Unit testing with Mockito and AssertJ

January 31st, 2015 | 8 min read | AssertJ, JUnit, Mockito, Testing

A few weeks ago I wrote my very first Spring Boot application and I was quite astonished about the result. Now, I did want to complete the application by writing some tests and so I did. In my previous tutorial I wrote several integration tests, and now it’s time to write some unit tests as […]

Easy integration testing with Spring Boot and REST-Assured

January 24th, 2015 | 9 min read | REST-Assured, Spring, Spring boot, Testing

In my previous article I explained how you could rapidly create a completely working, responsive CRUD application with about 150 lines of code. That’s obviously nice, but Spring Boot also makes it easy to write integration tests for your application, because it’s easy to setup a running test application with a few annotations, so then […]

Making your AngularJS application grunt

June 22nd, 2014 | 18 min read | angular, AngularJS, Grunt, JavaScript, Karma, Testing

A while back I wrote a small application to show you the main components of AngularJS, demonstrating controllers, services, filters and (custom) directives. In this tutorial I’m going to modify that application a bit and integrate GruntJS into it. For those who are wondering what Grunt is, well, it’s the task runner written in JavaScript, […]

Jasminify your Angular app

June 21st, 2014 | 14 min read | angular, AngularJS, Jasmine, JavaScript, Testing

Two months ago I wrote a small tutorial series about writing a small application using AngularJS. In that series I talked about the most common parts of AngularJS like controllers, services, filters and directives. However, AngularJS is more than just that, AngularJS also comes with an entire mocking framework, which makes the life of the […]

JavaScript unit testing met Jasmine

July 7th, 2013 | 7 min read | Jasmine, JavaScript, Testing, Web

Een tijd geleden (rond Januari) heb ik enkele tutorials geschreven over hoe je Java code kan unit testen. In deze tutorial is het tijd om eens een andere taal te unit testen, namelijk JavaScript. Voor JavaScript heb je een groot aanbod aan unit testing frameworks waar momenteel (jammer misschien) nog niet teveel standaarden rond zijn. […]

Selenium tests in Java

January 6th, 2013 | 13 min read | Integration testing, JUnit, Maven, Selenium, Spring, Testing, Web

In deze tutorial rond testing ga ik een eerste integratie test schrijven. Tot vandaag heb ik me enkel bezig gehouden met unit tests waarvan, zoals ik eerder al zei, enkel kleine stukken code getest worden. Als we echter de samenhang tussen verschillende zaken willen gaan testen, dan noemen we dat integratietesten. Enkele voorbeelden hiervan zijn […]

Mocking met Mockito

January 5th, 2013 | 5 min read | JUnit, Mockito, Spring, Testing

In de vorige tutorial heb ik gesproken over JUnit en heb ik hier en daar het woord “mocking” aangehaald. Stel je hebt een controller die een DAO service aanroept (zoals we eerder al gezien hebben), als we tests voor deze controller gaan schrijven willen we niet dat alle achterliggende lagen tevens aangeroepen worden. Het zou […]

Spring & JUnit

January 5th, 2013 | 10 min read | JUnit, Maven, Spring, Testing

Ondertussen hebben we al enkele Spring web applicaties gemaakt met frameworks zoals Dozer, Apache Velocity, Apache Lucene, Hibernate, RESTEasy, … . Wat we echter nog niet hebben gedaan is het testen van de applicatie. Deze, en waarschijnlijk ook de volgende, tutorials zullen in het teken staan van het testen van een applicatie.