ikedam edited a comment on Bug JENKINS-4409

I verified that following code resolves the problem:

// when your test classes run with JenkinsRule:
    @Rule
    public JenkinsRule j = new JenkinsRule(){
        protected void before() throws Throwable {
            setPluginManager(null);
            super.before();
        }
    };

// when your test classes derived from HudsonTestCase:
    @Override
    protected void setUp() throws Exception
    {
        setPluginManager(null);
        super.setUp();
    }
  • This takes effects only when running with -Dtest=(test class)
  • When run as "mvn test" (without -Dtest=XXXX), InjectTests runs and TestPluginManager is used.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to