Devoxx 2015 Belgium

Devoxx 2015 Belgium

Devoxx 2015 Belgium

“20 Years of Java” is the theme of the ongoing Java conference in Belgium at Devoxx. And during the past few years Kentor has always made it a point to send atleast two developers at these kind of conferences. So here we are again. At #Devoxx the focus is on Java and related technologies, talks are interesting with good content which motivates us to come all the way from Stockholm to Antwerpen. Continue reading

Moving GIT project between repository hosting systems [Problem with large files]

One specific problem encountered during the process of moving Git project from Google Code to GitHub was the large file. Firstly the large file was not in the current version but was somewhere in the history. Size of the file was around 450MB. What we needed to do was to first remove that large file from the Git history and to rescue our project we found BFG Repo-cleaner ( It introduces itself to be an alternative to git-filter-branch which is faster, simpler and easy to use. Continue reading

Date Time API – Java 8

Package java.time has been introduced in Java 8 forming the main API for dates, times, instants and duration. The Date-Time API uses the calendar system defined in ISO-8601 as the default calendar. Some classes in the Date-Time API are intended to represent machine time, and others are more suited to representing human time. All the classes under this package are immutable and thread-safe. Further the following packages: Continue reading

Generate random test data using DataFactory

Unit testing, integration testing or any other testing requires input data. And to generate this input data which is close to the real world format example x.getAddress() returns “Crescent Services located at 1085 Cloveridge Boulevard” could be a quite a task if one has to write some code to generate it randomly. To make the testing easier one has to make use of some library which would give all the data required. There might be other libraries available but my personal choice is DataFactory. Straightforward and simple to use, many helpful methods like fetching a random date between a range, getDateOfBirth(), getEmailAdress() and so on,

Andrew Gibson himself has written a good article on java.dzone

Recension av Clean Code: A Handbook of Agile Software Craftsmanship

Clean Code är skriven av Robert C. Martin, även känd som Uncle Bob. Han har arbetat som mjukvaruutvecklare sen 70-talet, är engagerad i agil utveckling och en förespråkare av testdriven utveckling. På denna länk finns kod utvecklad av Uncle Bob: Där finns bland annat FitNesse som tas upp som exempel i boken. Continue reading

Data validation made simple using Bean Validator

There are many validation frameworks out there. But the one that we are going talk about is Bean Validation API (JSR 303).  With Annotations and a simple API it is quite straight forward to express constraints on data; objects. The implementation’s that I have come across are from Apache and Hibernate. An example say’s more than 1000 words as mentioned on Hiberate Validator site.

public class Car {

   private String manufacturer;
 Continue reading