• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trouble mocking grailsApplication properties in integration test

 
Ranch Hand
Posts: 436
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Dave,

hmmm, have you already tried something like this?




Regards,
Serch
 
reply
    Bookmark Topic Watch Topic
  • New Topic