public static void reset() { setPluginManager(null); setGrailsApplication(null); setServletContext(null); setPluginManager(null); setPluginManagerInCreation(false); setConfig(null); }
@Override protected void setUp() throws Exception { super.setUp(); MockGrailsPluginManager pluginManager = new MockGrailsPluginManager(); Holders.setPluginManager(pluginManager); pluginManager.registerMockPlugin(MockHibernatePluginHelper.FAKE_HIBERNATE_PLUGIN); }
@Override protected void tearDown() throws Exception { super.tearDown(); Holders.setPluginManager(null); }