Archive for the ‘Groovy on Grails’ Category

Got FTP? Test it in Grails

In my earlier test driven-development post for Grails, the critically acclaimed Putting REST in your Tests for Grails (OK, maybe nobody read that except me while proofreading), I discussed an approach for automating integration tests when your Grails application has an external dependency on a web service, which in that case was the Brightcove Media [...]

Read More

I Love Web Frameworks: Oh, How the World has Changed

This article was recently dug up by our very own Chris Lamothe and directs some pointed criticism at frameworks. The post is still amusing even though it is now six years old. The article is still relevant and I think acts as a measure and challenge to developers as to how far (or not far) [...]

Read More

Grails selenium plugin v2.0rc3

If you are looking to test Grails using Selenium you no doubt found the selenium-rc plugin. The latest release of selenium (2.0rc3) has some fixes such as support for Firefox 4 on Mac. See this github fork for an updated version using selenium 2.0rc3. You can get the packaged plugin here.

Read More

Putting REST in your Tests for Grails

Recently I’ve been grappling with building integration tests for a new Grails plugin that I’m working on that integrates with the Brightcove Media API, which is a mostly REST-ful web service provided by the platform.  Details of the API can be found here.  The API comes in 2 parts, a Read API for querying video [...]

Read More

Liquibase! (Part 2)

In my last post I discussed the merits of using the Liquibase database schema migration system as well some recommended practices we’ve been using. As a follow-up, I thought I’d post some of the code I left out as well some suggestions when introducing Liquibase to an existing system. First, some code. The dbdiff script [...]

Read More

End-to-End Test Driven Development in Grails – Part 1

Testing, and specifically test-driven development is a methodology which few developers fully embrace. Automated testing is inevitably viewed as something that can be done last minute once an application is completed, or it’s considered too time consuming to be done at all. What most people don’t realize though, is that over the lifetime of an [...]

Read More

Legacy Hibernate with Grails – Not as easy as it sounds!

Here’s the situation.  You really want to introduce Grails into your development environment, but you’re an old-school Java shop and are worried about integration.  The Grails documentation makes it sound pretty easy.  Just create a hibernate.cfg.xml file in grails-app/conf/hibernate and throw in your hbm.xml files and presto – it’ll all just work.  That may work [...]

Read More

Grails – Exporting / Importing Domain Objects using DefaultGrailsDomainClass

Lately I’ve been working on a multi-tenant web app that contains a good-size number of domain objects. Within these objects, there exists a sub-set belonging to a root object, and the need arose to be able to quickly duplicate / populate the data within these objects between different instances of the app. It has become [...]

Read More

Plugin Development in Grails

We’ve had a bit of time to jump back into Grails plugin development (or maintenance as it were) and couldn’t be happier to find the recent improvements in Grails 1.1. The biggest improvement (though perhaps not advertised as such) to me, was the inclusion of functionality that allows plugin developers to build test applications against [...]

Read More

GORM multiple datasource access

It appears that the limitations of Grails object relational mapping (GORM) – only allowing connections to a single datasource – has been resolved with a new plugin from Burt Beckwith. This feature which allows application architects to design systems that can shard data across federated databases has been around for awhile in ActiveRecord – Rails [...]

Read More