agileice.blogspot.com
Agile ICE: November 2008
http://agileice.blogspot.com/2008_11_01_archive.html
Dynamic languages, programming, and other tech odds and ends. Wednesday, November 26, 2008. Accessing Subversion via SSH on a non-standard port. This may be common knowledge, but it took me a few minutes to figure out and I didn't want to have to spend a few minutes again in the future when I forget how to do this months down the line :). Basically, in your home directory (on a Linux system), there's a file .subversion/config. In that config file, there's a section called [tunnels]. The "reposerver" part...
agileice.blogspot.com
Agile ICE: August 2009
http://agileice.blogspot.com/2009_08_01_archive.html
Dynamic languages, programming, and other tech odds and ends. Saturday, August 29, 2009. Groovy RESTClient, HTTPBuilder, and PUT responses with no body. In working with a RESTful web service that allows PUT requests to upload files, I came across an slight annoyance with the put() convenience method in the Groovy RESTClient. Here's the scenario: I upload a zip file to the service so that it can use the data in that file to populate some things (see my post Groovy, RESTClient, and PUTting zip files. It tu...
agileice.blogspot.com
Agile ICE: November 2009
http://agileice.blogspot.com/2009_11_01_archive.html
Dynamic languages, programming, and other tech odds and ends. Thursday, November 19, 2009. Running easyb stories in a Gradle build. Recently, I've felt like I've been fighting Maven for all but the simplest builds, so I've been exploring alternative build systems, notably Gradle. One thing, too, that's become really important to my build processes lately is running easyb. Tests, so I wanted to figure out how to use easyb in my Gradle builds. TestRuntime("org.easyb:easyb:0.9.6@jar") { transiti...With the ...
agileice.blogspot.com
Agile ICE: September 2008
http://agileice.blogspot.com/2008_09_01_archive.html
Dynamic languages, programming, and other tech odds and ends. Monday, September 22, 2008. Adding HTTP Basic Authorization to GroovyHTTP. A while back, I discovered a great little Groovy utility by Tony Landis called GroovyHTTP. Which allows you to generate web requests in Groovy. I've used it with great success on a number of projects. Lately, I've been playing with a neat GTD web app named Tracks. But when you need it, you need it. Def h = new GroovyHTTP(protectedUrl). Links to this post. So I have a se...
agileice.blogspot.com
Agile ICE: September 2009
http://agileice.blogspot.com/2009_09_01_archive.html
Dynamic languages, programming, and other tech odds and ends. Saturday, September 19, 2009. Binding the Grails DataSource in JNDI for Integration Testing. While we could have set up a source in jetty-env.xml and placed that file in WEB-INF, from a number of postings on the 'net (see, for example, this thread. Class MyClassTests extends GroovyTestCase {. Def dataSource / auto-wired by Grails. Setup, test methods, etc . . . With the data source defined, we can now access it as we need it. Def ctx = new jav...
agileice.blogspot.com
Agile ICE: December 2009
http://agileice.blogspot.com/2009_12_01_archive.html
Dynamic languages, programming, and other tech odds and ends. Thursday, December 10, 2009. Coding around Shiro security in Grails integration tests. A number of our controllers work directly with the Shiro-authenticated user in a session, so when it comes to integration testing our controllers, we need a way of faking the Shiro actions. Groovy's metaprogramming techniques make it fairly easy. Import org.apache.shiro.subject.Subject. Def subject = [ getPrincipal: { "iamauser" },. IsAuthenticated: { true }.
agileice.blogspot.com
Agile ICE: Getting started with the easyb plugin for BDD in Grails
http://agileice.blogspot.com/2009/11/getting-started-with-easyb-plugin-for.html
Dynamic languages, programming, and other tech odds and ends. Monday, November 9, 2009. Getting started with the easyb plugin for BDD in Grails. One of the more exciting things I've learned about recently is doing behavior driven development (BDD) with a framework called easyb. Plug-in provides the following new scripts:. So let's say I'm working with an application that takes dry cleaning orders and I want to test the behavior of the service that creates orders when a customer drops of some suits to be ...
agileice.blogspot.com
Agile ICE: Running easyb stories in a Gradle build
http://agileice.blogspot.com/2009/11/running-easyb-stories-in-gradle-build.html
Dynamic languages, programming, and other tech odds and ends. Thursday, November 19, 2009. Running easyb stories in a Gradle build. Recently, I've felt like I've been fighting Maven for all but the simplest builds, so I've been exploring alternative build systems, notably Gradle. One thing, too, that's become really important to my build processes lately is running easyb. Tests, so I wanted to figure out how to use easyb in my Gradle builds. TestRuntime("org.easyb:easyb:0.9.6@jar") { transiti...With the ...
agileice.blogspot.com
Agile ICE: Coding around Shiro security in Grails integration tests
http://agileice.blogspot.com/2009/12/coding-around-shiro-security-in-grails.html
Dynamic languages, programming, and other tech odds and ends. Thursday, December 10, 2009. Coding around Shiro security in Grails integration tests. A number of our controllers work directly with the Shiro-authenticated user in a session, so when it comes to integration testing our controllers, we need a way of faking the Shiro actions. Groovy's metaprogramming techniques make it fairly easy. Import org.apache.shiro.subject.Subject. Def subject = [ getPrincipal: { "iamauser" },. IsAuthenticated: { true }.