Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trouble mocking grailsApplication properties in integration test  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Groovy 1.7.7 with Grails 1.2.1. I have this in my integration test ...



Although the second property, clearCacheMsg, evaluates properly to the string I set it to, the first property, "notAuthorizedMsg", evaluates to a ConfigObject, which is wreaking havoc with my tests. I figured this all out through my STS debugger -- http://screencast.com/t/8FVrYFMPt . Does anyone know what I'm doing wrong here? In other words, what is the correct way to mock these configuration properties? - Dave
 
sergio ramirez
Greenhorn
Posts: 4
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Dave,

hmmm, have you already tried something like this?




Regards,
Serch
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!