Blogspot - mrhaki.blogspot.com - Messages from mrhaki
General Information:
Latest News:
Spocklight: Using the Old Method 22 Aug 2013 | 08:18 am
Spock has some great features to write specifications or tests that are short and compact. One of them is the old() method. The old() method can only be used in a then: block. With this method we get ...
Grails Goodness: Set Request Locale in Unit Tests 19 Aug 2013 | 07:00 am
There is really no excuse to not write unit tests in Grails. The support for writing tests is excellent, also for testing code that has to deal with the locale set in a user's request. For example we ...
Grails Goodness: Using the header Method to Set Response Headers 14 Aug 2013 | 06:26 pm
Grails adds a couple of methods and properties to our controller classes automatically. One of the methods is the header() method. With this method we can set a response header with a name and value. ...
Groovy Goodness Notebook is Published 28 Jun 2013 | 09:11 am
Today Groovy Goodness Notebook is published. This book is an electronic publication with all blog posts about Groovy Goodness bundled. The posts are slightly edited and categorized into sections. The...
Update on Progress Groovy Goodness Notebook 25 Jun 2013 | 10:18 am
All blog posts are now converted to Leanpub markdown documents. I have also categorized the posts and you can see the result in the preview of the table of contents. Now I need to check the formatting...
Grails Goodness: Compiling GSP from the Command-Line 3 Jun 2013 | 04:30 pm
Normally Groovy Server Pages (GSP) are compiled to class files when we create a WAR file of our application. If we want to compile the GSP without creating a WAR file we use the command-line argument ...
Grails Goodness: Compiling GSP from the Command-Line 3 Jun 2013 | 04:30 pm
Normally Groovy Server Pages (GSP) are compiled to class files when we create a WAR file of our application. If we want to compile the GSP without creating a WAR file we use the command-line argument ...
Work in Progress on Groovy Goodness Notebook 3 Jun 2013 | 03:40 pm
Last year at the Gr8Conf Europe people approached me and asked if I would publish a "book" with my blog posts. This seemed like a nice idea to do, so I started already last year, but because of time c...
Work in Progress on Groovy Goodness Notebook 3 Jun 2013 | 03:40 pm
Last year at the Gr8Conf Europe people approached me and asked if I would publish a "book" with my blog posts. This seemed like a nice idea to do, so I started already last year, but because of time c...
Groovy Goodness: Customize Log Variable Name with Log AST Annotations 30 May 2013 | 05:56 pm
To add logging to a class with Groovy is easy. We apply one of the logging AST transformations and we get a variable in our class named log. We can invoke methods on the variable and the AST transform...