KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > gems > monitors > MultipleLoggerLog4JComponentMonitorTestCase


1 /*****************************************************************************
2  * Copyright (C) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8 package org.picocontainer.gems.monitors;
9
10 import java.lang.reflect.Constructor JavaDoc;
11 import java.lang.reflect.Method JavaDoc;
12
13 import org.picocontainer.ComponentMonitor;
14
15 /**
16  * @author Paul Hammant
17  * @author Mauro Talevi
18  */

19 public class MultipleLoggerLog4JComponentMonitorTestCase extends AbstractComponentMonitorTestCase {
20
21     protected void setUp() throws Exception JavaDoc {
22         super.setUp();
23     }
24
25     protected ComponentMonitor makeComponentMonitor() {
26         return new Log4JComponentMonitor();
27     }
28
29     protected Method JavaDoc getMethod() throws NoSuchMethodException JavaDoc {
30         return String JavaDoc.class.getMethod("toString",new Class JavaDoc[0]);
31     }
32
33     protected Constructor JavaDoc getConstructor() {
34         return String JavaDoc.class.getConstructors()[0];
35     }
36
37     protected String JavaDoc getLogPrefix() {
38         return "[" + String JavaDoc.class.getName() + "] ";
39     }
40
41 }
42
Popular Tags