01: /*
02: * Copyright (C) The DNA Group. All rights reserved.
03: *
04: * This software is published under the terms of the DNA
05: * Software License version 1.1, a copy of which has been included
06: * with this distribution in the LICENSE.txt file.
07: */
08: package org.codehaus.dna.impl;
09:
10: import org.codehaus.dna.impl.ConsoleLogger;
11:
12: class MockConsoleLogger extends ConsoleLogger {
13: public MockConsoleLogger() {
14: }
15:
16: public MockConsoleLogger(final int level) {
17: super (level);
18: }
19:
20: boolean m_output;
21: String m_type;
22: String m_message;
23: Throwable m_throwable;
24:
25: void doOutput(String type, String message, Throwable throwable) {
26: m_output = true;
27: m_type = type;
28: m_message = message;
29: m_throwable = throwable;
30: }
31: }
|