1 22 package org.jboss.test; 23 24 import org.jboss.logging.Logger; 25 import org.jboss.test.logging.LoggingPlugin; 26 27 33 public class BaseTestCase extends AbstractTestCase 34 { 35 36 protected LoggingPlugin logging; 37 38 39 protected Logger log; 40 41 46 public BaseTestCase(String name) 47 { 48 super(name); 49 } 50 51 public Logger getLog() 52 { 53 return log; 54 } 55 56 protected void setUp() throws Exception 57 { 58 logging = LoggingPlugin.getInstance(); 59 logging.setUp(); 60 configureLogging(); 61 log = Logger.getLogger(getClass()); 62 super.setUp(); 63 } 64 65 protected void tearDown() throws Exception 66 { 67 super.tearDown(); 68 } 69 70 protected void enableTrace(String name) 71 { 72 logging.enableTrace(name); 73 } 74 } 75 | Popular Tags |