/** * Destroy its managing Configuration instance */ public synchronized void destroyConfiguration() { clearContainerProviders(); // let's destroy the ConfigurationProvider first containerProviders = new CopyOnWriteArrayList<ContainerProvider>(); if (configuration != null) configuration.destroy(); // let's destroy it first, before nulling it. configuration = null; }
@AfterClass public static void afterClass() throws Exception { StrutsTestCaseHelper.tearDown(); XWorkTestCaseHelper.tearDown(configurationManager); configuration.destroy(); configuration = null; configurationManager = null; container = null; httpSession = null; servletContext = null; session = null; }