@After public void teardown() throws Exception { TestUtils.shutdown(jdbcDataSource); InMemoryLog.clear(); System.setProperty("org.apache.commons.logging.Log", ""); }
@Before public void setup() throws Exception { // TODO: clean up logger intercept mechanism System.setProperty("org.apache.commons.logging.Log", InMemoryLog.class.getCanonicalName()); loggingListener = new CommonsQueryLoggingListener(); // real datasource jdbcDataSource = TestUtils.getDataSourceWithData(); proxyDataSource = new ProxyDataSource(); proxyDataSource.setDataSource(jdbcDataSource); proxyDataSource.setListener(loggingListener); }