Using the Spock Framework for unit tests

19/03/2015 Leave a comment

The Spock framework is a testing and specification framework built on top of JUnit and Groovy. It has many strengths, but its true power lies in its ability to write tests in a very readable, concise manner, which can dramatically cut your amount of testing code. I will show you some examples later.

Another big advantage is the orientation towards data driven testing. If you have a lot of unit tests where there are multiple input variables which can take different values and leading to different outputs, then definitely have a look at the “where” clause of the Spock framework.

And… it is powered by Groovy !! This gives you a whole lot of power to expressively write your test code, as anyone that ever used Groovy can attest.
Read more…

Categories: iPROFS

Spring, Hibernate and @Transactional : “aha” moments

10/03/2015 Leave a comment

Recently I have been sweating to make annotated transactions work in Spring MVC with Hibernate ORM and want to share with you some “aha” moments that took me some time/blood/sweat/tears to find out. Hopefully you’ll find it useful.

The goal for me was to annotate Service methods with a @Transactional annotation so that Spring will automatically create a transaction around anything Hibernate-related that happens inside the method.

Read more…

Categories: iPROFS

JSR 371: The last web framework you’ll ever look at

While a lot of companies still are adopting Java EE 7 the fundamentals of the next major Java enterprise edition are already finished. JSR 366 is to develop Java EE 8, the next release of the Java Platform Enterprise edition. Java EE 8 will bring us a new action based web framework. Will this be the last java web framework you’ll ever look at?

Read more…

Categories: iPROFS, Java Tags:

2014, a year in conferences

04/02/2015 Leave a comment

2014 has been a busy year for me. So much so, that I didn’t get around to writing blogs about all the conferences I visited. So let me give you a short(ish) summary of the whole year instead.

Read more…

Off to a great team start with Tuckman, Lencioni and Ofman!

10/01/2015 Comments off

When you start as Scrum Master on a new team, they are usually just a collection of individuals that together have the skill set necessary to fulfil the goal of the team. In order for that group to become high-performing, you have to let them turn into a team. Yes, you read it right, you cannot turn them into a team, they have to do that themselves. The only thing you can do about it to facilitate the process they need, so it can speed up a bit. Read more…

Categories: Scrum

Power to the Developers?

30/12/2014 Comments off

POwer to the people symbolWhen you start with creating your software using the Scrum framework, you notice a shift in power from the Project Manager to the team members. This might be a scary thought. Even more, there is no Project Manager anymore!  Read more…

Categories: Scrum Tags: ,

Refactoring or restructuring

19/12/2014 Comments off

Clean Code logoPassionate developers love to write clean code and make it more beautiful all the time. They call this Refactoring. In my experience refactoring is often misunderstood and is sometimes even used as an excuse to spend lots of time on improving the code structure. It is very tempting to learn more about how to make that particular piece of code even more readable, maintainable and elegantly. This then results in less developing of new features. How could we handle this?
Read more…

Categories: iPROFS Tags: , ,

Get every new post delivered to your Inbox.

Join 274 other followers