|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream java.io.PrintStream utfx.printers.ResultPrinter utfx.printers.JunitResultPrinter
public class JunitResultPrinter
Simple result printer which produces output similar to that of
junit.textui.ResultPrinter
. This result printer is based on
junit.textui.ResultPrinter
by Kent Beck and Erich Gamma.
Copyright © 2004 - University of Southern Queensland.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Source: /cvs/utf-x/framework/src/java/utfx/printers/JunitResultPrinter.java,v $
junit.textui.ResultPrinter
)Field Summary | |
---|---|
private int |
colNum
column number |
Fields inherited from class utfx.printers.ResultPrinter |
---|
indentString, log, suiteDepth, testCaseCount |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
JunitResultPrinter(java.io.OutputStream os)
|
Method Summary | |
---|---|
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
Print error symbol. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
Print failure symbol. |
void |
endTestCase(junit.framework.TestCase testCase)
End of a test case. |
void |
endTestSuite(junit.framework.TestSuite suite)
End of a test suite. |
void |
printDefect(junit.framework.TestFailure booBoo,
int count)
Print a defect. |
void |
printDefectHeader(junit.framework.TestFailure booBoo,
int count)
Print defect header. |
void |
printDefects(java.util.Enumeration booBoos,
int count,
java.lang.String type)
Print defects. |
void |
printDefectTrace(junit.framework.TestFailure booBoo)
Print defect trace. |
void |
printErrors(junit.framework.TestResult result)
Print errors. |
void |
printFailures(junit.framework.TestResult result)
Print failures Based on junit.textui.ResultPrinter by Kent Beck and Erich
Gamma. |
void |
printFooter(junit.framework.TestResult result)
Print footer. |
void |
printHeader(junit.framework.TestResult result)
Print summary header. |
void |
startTestCase(junit.framework.TestCase testCase)
Start of a test case. |
void |
startTestSuite(junit.framework.TestSuite suite)
Start of a test suite. |
Methods inherited from class utfx.printers.ResultPrinter |
---|
endTest, getIndent, printElapsedTimeMillis, printIndent, printSummary, setIndentString, start, startTest |
Methods inherited from class java.io.PrintStream |
---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write |
Methods inherited from class java.io.FilterOutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int colNum
Constructor Detail |
---|
public JunitResultPrinter(java.io.OutputStream os)
Method Detail |
---|
public void printHeader(junit.framework.TestResult result)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
printHeader
in class ResultPrinter
junit.textui.ResultPrinter
public void printErrors(junit.framework.TestResult result)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
printErrors
in class ResultPrinter
result
- test resultjunit.textui.ResultPrinter
public void printFailures(junit.framework.TestResult result)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
printFailures
in class ResultPrinter
result
- test resultjunit.textui.ResultPrinter
public void printDefects(java.util.Enumeration booBoos, int count, java.lang.String type)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
junit.textui.ResultPrinter
public void printDefect(junit.framework.TestFailure booBoo, int count)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
junit.textui.ResultPrinter
public void printDefectHeader(junit.framework.TestFailure booBoo, int count)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
junit.textui.ResultPrinter
public void printDefectTrace(junit.framework.TestFailure booBoo)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
junit.textui.ResultPrinter
public void printFooter(junit.framework.TestResult result)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
printFooter
in class ResultPrinter
junit.textui.ResultPrinter
public void addError(junit.framework.Test test, java.lang.Throwable t)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
junit.textui.ResultPrinter
,
TestListener.addError(Test, Throwable)
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
junit.textui.ResultPrinter
by Kent Beck and Erich
Gamma.
junit.textui.ResultPrinter
,
TestListener.addFailure(Test, AssertionFailedError)
public void startTestCase(junit.framework.TestCase testCase)
startTestCase
in class ResultPrinter
testCase
- the TestSuite we are entering.public void endTestCase(junit.framework.TestCase testCase)
endTestCase
in class ResultPrinter
testCase
- public void startTestSuite(junit.framework.TestSuite suite)
startTestSuite
in class ResultPrinter
suite
- the TestSuite we are entering.public void endTestSuite(junit.framework.TestSuite suite)
endTestSuite
in class ResultPrinter
suite
- the TestSuite we are leaving
|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |