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