01: /*
02: * $Id: EmptyReporter.java,v 1.1 2005/07/28 01:27:28 spal Exp $
03: * $Source: /cvsroot/sqlunit/sqlunit/src/net/sourceforge/sqlunit/reporters/EmptyReporter.java,v $
04: * SQLUnit - a test harness for unit testing database stored procedures.
05: * Copyright (C) 2003 The SQLUnit Team
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License
09: * as published by the Free Software Foundation; either version 2
10: * of the License, or (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20: */
21: package net.sourceforge.sqlunit.reporters;
22:
23: import java.util.Map;
24:
25: import net.sourceforge.sqlunit.IReporter;
26:
27: /**
28: * An empty reporter implementation. Useful for test cases.
29: * @author Ivan Ivanov
30: * @version $Revision: 1.1 $
31: */
32: public class EmptyReporter implements IReporter {
33:
34: public EmptyReporter(String filename) {
35: }
36:
37: public String getName() {
38: return "EmptyReporter";
39: }
40:
41: public boolean hasContainer() {
42: return false;
43: }
44:
45: public void newTestFile(String testName, String testFile) {
46: }
47:
48: public void settingUpConnection(String connectionId) {
49: }
50:
51: public void setConfig(Map config) {
52: }
53:
54: public void setUp() {
55: }
56:
57: public void runningTest(String name, int testIndex, String desc) {
58: }
59:
60: public void finishedTest(long elapsed, boolean success) {
61: }
62:
63: public void skippedTest(String name, int testIndex, String desc) {
64: }
65:
66: public void addFailure(Throwable th, boolean error) {
67: }
68:
69: public void tearDown() {
70: }
71:
72: public void tempFile(int testId, String result, String file) {
73: }
74:
75: public void testFileComplete(boolean success) {
76: }
77:
78: public void echo(String message) {
79: }
80: }
|