Given When Then – How To


Expressing tests in a Given When Then style is the core practice of the Behavior Driven Development (BDD) methodology. Details about BDD can be found here. Writing tests in a GWT style can become tricky when there is no clear understanding / definition of what the actual test and preconditions are. As explained in Martin … Continue reading Given When Then – How To

Equals and hashcode how to for Hibernate and JPA in general


This morning I was manually writing a Hibernate bean and, when I got to question myself whether or not implementing equals and hashcode, I stumbled upon quite a few dilemmas: shall I create them at all? (well yeah coz you want to use them in collections and the comparison between two objects should rely upon … Continue reading Equals and hashcode how to for Hibernate and JPA in general