mehandih / grails-jaxrs

Automatically exported from code.google.com/p/grails-jaxrs
0 stars 0 forks source link

Custom providers won't work with integration test since GrailsApplication is null #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Again, i didn't digg deeper, since i use functional test plugin, but 
if i test my stuff with a custom provider, i need mock the config

@Before
    void setUp() {
        super.setUp()
        ConfigurationHolder.config.org.grails.jaxrs.doreader.disable = true
    }

But then the grailsApplication.isDomainClass(...) will fail since it is null.

Original issue reported on code.google.com by stest...@gmail.com on 5 Aug 2011 at 1:17

GoogleCodeExporter commented 8 years ago
I'll take a look as soon as I can but I'm on vacation the next 2 weeks, so it 
may take a while. Should you be able to resolve this issue yourself, I'd highly 
appreciate if you could clone the project on github, apply your changes and 
submit a pull request.

Original comment by krass...@googlemail.com on 5 Aug 2011 at 5:26

GoogleCodeExporter commented 8 years ago
Can you please share a small sample application for reproducing the problem? 
I'm especially interested in your specific functional-test-plugin usage 
(because I've never used it before).

Thanks,
Martin

Original comment by krass...@googlemail.com on 28 Aug 2011 at 7:17