01: package net.sourceforge.squirrel_sql;
02:
03: import net.sourceforge.squirrel_sql.client.ApplicationManager;
04: import net.sourceforge.squirrel_sql.fw.util.log.ILogger;
05: import net.sourceforge.squirrel_sql.fw.util.log.LoggerController;
06:
07: import org.apache.log4j.Level;
08:
09: public class BaseSQuirreLJUnit4TestCase {
10:
11: public BaseSQuirreLJUnit4TestCase() {
12: ApplicationManager.initApplication();
13: }
14:
15: @SuppressWarnings("unchecked")
16: protected static void disableLogging(Class c) {
17: ILogger s_log = LoggerController.createLogger(c);
18: s_log.setLevel(Level.OFF);
19: }
20:
21: @SuppressWarnings("unchecked")
22: protected static void debugLogging(Class c) {
23: ILogger s_log = LoggerController.createLogger(c);
24: s_log.setLevel(Level.DEBUG);
25: }
26:
27: }
|