Skip to content

Instantly share code, notes, and snippets.

@danveloper danveloper/Config.groovy Secret
Created May 28, 2013

Embed
What would you like to do?
app.parentname = "objectpartners.com"
environments {
test {
app.parentname = "danveloper.com"
}
}
class CustomerIntegrationTests extends GroovyTestCase {
// DI
def grailsApplication
void testProps() {
def customer = grailsApplication.mainContext.getBean(Customer)
assert customer.parentName == "danveloper.com"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.