KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > dna > impl > MockConsoleLogger


1 /*
2  * Copyright (C) The DNA Group. All rights reserved.
3  *
4  * This software is published under the terms of the DNA
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.dna.impl;
9
10 import org.codehaus.dna.impl.ConsoleLogger;
11
12 class MockConsoleLogger
13     extends ConsoleLogger
14 {
15     public MockConsoleLogger()
16     {
17     }
18
19     public MockConsoleLogger( final int level )
20     {
21         super( level );
22     }
23
24     boolean m_output;
25     String JavaDoc m_type;
26     String JavaDoc m_message;
27     Throwable JavaDoc m_throwable;
28
29     void doOutput( String JavaDoc type,
30                    String JavaDoc message,
31                    Throwable JavaDoc throwable )
32     {
33         m_output = true;
34         m_type = type;
35         m_message = message;
36         m_throwable = throwable;
37     }
38 }
39
Popular Tags