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 [...]
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) [...]
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.
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
Several market trends have been shaping the mobile services we offer at Cantina. The use of consumer technologies in the enterprise is increasing, including everything from Dropbox, social networks, Google apps, and mobile devices. Companies considering the deployment of business applications to the mobile context need to consider bring your own device (BYOD) strategies to [...]