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 20 public class SingleLoggerLog4JComponentMonitorTestCase extends AbstractComponentMonitorTestCase { 21 22 protected void setUp() throws Exception { 23 super.setUp(); 24 } 25 26 protected ComponentMonitor makeComponentMonitor() { 27 return new Log4JComponentMonitor(Log4JComponentMonitor.class); 28 } 29 30 protected Constructor getConstructor() throws NoSuchMethodException { 31 return getClass().getConstructor((Class [])null); 32 } 33 34 protected Method getMethod() throws NoSuchMethodException { 35 return getClass().getDeclaredMethod("setUp", (Class [])null); 36 } 37 38 protected String getLogPrefix() { 39 return "[" + Log4JComponentMonitor.class.getName() + "] "; 40 } 41 42 } 43 | Popular Tags |