Dzone - groovy.dzone.com - DZone Java Zone

Latest News:

Spocklight: Using the Old Method 23 Aug 2013 | 10:29 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 ...

How to Convert Asciidoc Text to HTML using Groovy 20 Aug 2013 | 10:46 am

Here is how you can convert asciidoc text using a Groovy script: // filename: RunAsciidoc.groovy @Grab('org.asciidoctor:asciidoctor-java-integration:0.1.3') import org.asciidoctor.* def asciidoctor =...

Grails Goodness: Set Request Locale in Unit Tests 20 Aug 2013 | 10:43 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 16 Aug 2013 | 10:17 am

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. ...

Searching JARs for String (Linux) 16 Aug 2013 | 10:14 am

I recently thought about writing a Groovy script to search JARs for a specific string, but decided to first look for an alternative rather than writing a script. The alternative needed to be easy to u...

SOA and REST with Grails 13 Aug 2013 | 09:09 am

In my previous articles I’ve introduced REST and how to leverage RESTful web services on the Grails platform. We will further discuss Grails in a service-oriented architecture using RESTful services, ...

The Hell of IntelliJ and Gradle Integration 9 Aug 2013 | 10:36 am

I love using Gradle nowadays. I love IntelliJ even more. However, integration these two is proving to be a real pain in the ass!For simple Java projects, everything works great. Although I have to adm...

Spock - Return Nested Spies / Mocks 8 Aug 2013 | 10:13 am

Hi! Some time ago I have written an article about Mockito and using RETURNS_DEEP_STUBS when working with JAXB. Preview Text: Natively Spock does not support creating deep stubs or spies so we needed....

Node.js Call https with BASIC Authentication 29 Jul 2013 | 10:07 am

Node.js https module used to make a remote call to a remote server using https and BASIC authentication: Preview Text: Here's a node.js https module used to make a remote call to a remote server usi....

Groovy Sql and Oracle 'Invalid column index' SQLException 23 Jul 2013 | 10:02 am

There are some minor potential dangers associated with Groovy's def keyword. Preview Text: There are some minor potential dangers associated with Groovy's def keyword. The Groovy style and language ....

Recently parsed news:

Recent searches: