KickJava   Java API By Example, From Geeks To Geeks.

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


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