KickJava   Java API By Example, From Geeks To Geeks.

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


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  * @version $Revision: 2024 $
19  */

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