Testing Spatial Data with DbUnit

feyenoord-2
Working with geographic data and spatial databases is fun. With Hibernate Spatial it is also easy to create spatial queries that are standardized and database independent. But testing spatial queries with DbUnit does not work out of the box. In this article I will present a solution with just a simple hook in DbUnit.

Read More

Demystifying the complexity of Bitboards

TicTacToe-2
Ever since I built my own chess-engine and lost against the chess-engine of a colleague of mine who used bitboards I wanted to learn this bitboard stuff. Recently I saw the perfect opportunity to use bitboards myself. This blogpost will describe my experiences and hopefully will demystify the complexity of bitboards for you.

Read More

Assert Collections Fluently

comicbooks_umag_15copy-2
The one thing I love the most about Java is the variety of libraries and frameworks available. A couple of weeks ago I was writing a lot of code involving Collections and was irritated about the bloated unit tests associated with it. When I could not stand it anymore, I started googling and stumbled upon a nice little library called FEST assertions and it totally made my day.

Read More