« Return to Thread: JSecurity Plugin vs. Integration Tests

Re: JSecurity Plugin vs. Integration Tests

by Peter Ledbrook :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: JSecurity Plugin vs. Integration Tests