Articles Tagged ‘groovy’
Sunday, August 23rd, 2015
Writing tests for asynchronous applications has never been much fun as we’re always struggling with the problem how to determine state changes, handle process terminations, dealing with timeouts or failures and stuff like this.
Awaitility eases this process for us offering a nice DSL, rich support for languages like Scala or Groovy and an easy-to-use syntax that’s even more fun when using it with Java 8′s lambda expressions.
In the following short introduction I’d like to demonstrate writing some tests different scenarios.
(more…)
Tags: async, asynchronous, awaitility, event, eventbus, eventhandler, gradle, groovy, guava, junit, scala, subscriber, tdd, test, testing
Posted in Java, testing | No Comments »
Sunday, October 23rd, 2011
There are many frameworks out there to facilitate testing RESTful webservices but there is one framework I’d like to acquaint you with my favourite framework named REST-assured.
REST-assured offers a bunch of nice features like a DSL-like syntax, XPath-Validation, Specification Reuse, easy file uploads and those features we’re going to explore in the following article.
With a few lines of code and Jersey I have written a RESTful web service that allows us to explore the features of the REST-assured framework and to run tests against this service.
(more…)
Tags: groovy, jax-rs, jaxb, jaxrs, jersey, rest, rest-assured, tomcat, webservice, ws
Posted in Java, Web Services | 113 Comments »
Tuesday, July 12th, 2011
Often ant tasks are used in Maven builds but wouldn’t it be more attractive to integrate the Groovy language into our build process?
GMaven is the answers to this problem and brings together Maven and Groovy. It allows us to execute Groovy scripts inline from our Maven configuration, from a local script or even from a remote location. In the following short examples I am going to show how to configure Maven to execute Groovy scripts from different locations.
(more…)
Tags: ant, Build, gmaven, gradle, groovy, maven, plugin, task
Posted in Groovy/Grails, Java | No Comments »
Tuesday, April 6th, 2010
They built a nice new feature in Grails 1.2 called “named queries“. Named queries can be defined in a domain class as static properties and support the criteria builder syntax. (more…)
Tags: criteria builder, gorm, grails, groovy, hibernate, named queries, persistence
Posted in Development, Groovy/Grails | 2 Comments »
Tuesday, March 23rd, 2010
Sometimes I get the impression that there are many Maven haters in the Groovy/Grails community – now with version 1.2 of the Grails framework they are able to abandon the evil satanic Grails Maven Plugin and embrace the neverending joys of a slim, nice, sexy dependency resolution dsl .. here we go .. lets define some dependencies wheee … (more…)
Tags: Apache, Build cycle, dependency, deployment, grails, groovy, ivy, maven
Posted in Groovy/Grails | 1 Comment »