« Return to Thread: JSecurity Plugin vs. Integration Tests

Re: JSecurity Plugin vs. Integration Tests

by Jason Rudolph-2 :: Rate this Message:

Reply to Author | View in Thread

Hi Peter,
Thanks.  That change to TestApp.groovy indeed solves the problem.  Is there any reason not to make this a permanent change to Grails?  

Either way, do you agree that this is a bug?  If so, please let me know, and I'll log a JIRA ticket.

Thanks,
Jason

--

Jason Rudolph
http://jasonrudolph.com
http://thinkrelevance.com

>On 06/01/2008, Jason Rudolph <listserv@...> wrote:
>> Thanks for the suggestion. Alex.  I originally just grabbed the pre-built
>ZIP from the plugin repo.  In that scenario, both 0.1.1 and the 0.2-SNAPSHOT
>exhibited caused the integration tests to fail.  As you suggested, I grabbed
>the JSecurity plugin source, and built a ZIP with the latest plugin code in
>SVN, but unfortunately it still causes the integration tests to fail.
>
>Jason,
>
>If you don't mind modifying the Grails script files, a quick hack is
>to add the marked line to TestApp.groovy:
>
>
>target(runUnitTests: "Run Grails' unit tests under the test/unit directory")
>{
>    try {
>        PluginManagerHolder.pluginManager = null  // <<<< Add this line here
>        loadApp()
>
>        pluginManager.getGrailsPlugin("core")?.doWithDynamicMethods(appCtx)
>        
>pluginManager.getGrailsPlugin("logging")?.doWithDynamicMethods(appCtx)
>
>Peter
>
>---------------------------------------------------------------------
>To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

 « Return to Thread: JSecurity Plugin vs. Integration Tests