1 8 package org.picocontainer.gems.monitors; 9 10 import java.lang.reflect.Constructor ; 11 import java.lang.reflect.Method ; 12 13 import org.picocontainer.ComponentMonitor; 14 15 19 public class MultipleLoggerLog4JComponentMonitorTestCase extends AbstractComponentMonitorTestCase { 20 21 protected void setUp() throws Exception { 22 super.setUp(); 23 } 24 25 protected ComponentMonitor makeComponentMonitor() { 26 return new Log4JComponentMonitor(); 27 } 28 29 protected Method getMethod() throws NoSuchMethodException { 30 return String .class.getMethod("toString",new Class [0]); 31 } 32 33 protected Constructor getConstructor() { 34 return String .class.getConstructors()[0]; 35 } 36 37 protected String getLogPrefix() { 38 return "[" + String .class.getName() + "] "; 39 } 40 41 } 42 | Popular Tags |