|
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.FormattedResultPrinter
public class FormattedResultPrinter
TODO doco PLS!
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/FormattedResultPrinter.java,v $
Field Summary | |
---|---|
(package private) boolean |
passed
|
(package private) boolean |
reportSuitesOnly
|
(package private) java.util.Stack |
statsStack
|
(package private) int |
testCount
|
(package private) int |
testDepth
|
(package private) int |
testNameLength
|
(package private) java.lang.String |
testSuiteName
|
(package private) java.util.Stack |
testSuiteNames
|
Fields inherited from class utfx.printers.ResultPrinter |
---|
indentString, log, suiteDepth, testCaseCount |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
FormattedResultPrinter(java.io.OutputStream os)
|
Method Summary | |
---|---|
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
|
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
|
void |
close()
This method is called after all result printing has been completed. |
void |
endTestCase(junit.framework.TestCase test)
End of a test case. |
void |
endTestSuite(junit.framework.TestSuite suite)
End of a test suite. |
private java.lang.String |
getCleanName(junit.framework.Test t)
|
void |
printDefect(junit.framework.TestFailure booBoo,
int count)
|
void |
printDefectHeader(junit.framework.TestFailure booBoo,
int count)
|
void |
printDefects(java.util.Enumeration booBoos,
int count,
java.lang.String type)
|
protected void |
printDefectTrace(junit.framework.TestFailure booBoo)
|
void |
printErrors(junit.framework.TestResult result)
Print errors. |
void |
printFailures(junit.framework.TestResult result)
Print failures. |
void |
printFooter(junit.framework.TestResult result)
Print report footer. |
void |
printHeader(junit.framework.TestResult result)
Print report header. |
void |
startTestCase(junit.framework.TestCase test)
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, 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 |
---|
int testCount
int testDepth
int testNameLength
boolean passed
java.util.Stack statsStack
java.util.Stack testSuiteNames
java.lang.String testSuiteName
boolean reportSuitesOnly
Constructor Detail |
---|
public FormattedResultPrinter(java.io.OutputStream os)
Method Detail |
---|
public void printHeader(junit.framework.TestResult result)
printHeader
in class ResultPrinter
public void printErrors(junit.framework.TestResult result)
ResultPrinter
junit.textui.ResultPrinter
printErrors
in class ResultPrinter
result
- test resultpublic void printFailures(junit.framework.TestResult result)
ResultPrinter
junit.textui.ResultPrinter
printFailures
in class ResultPrinter
result
- test resultpublic void printDefects(java.util.Enumeration booBoos, int count, java.lang.String type)
public void printDefect(junit.framework.TestFailure booBoo, int count)
public void printDefectHeader(junit.framework.TestFailure booBoo, int count)
protected void printDefectTrace(junit.framework.TestFailure booBoo)
public void printFooter(junit.framework.TestResult result)
printFooter
in class ResultPrinter
public void addError(junit.framework.Test test, java.lang.Throwable t)
TestListener.addError(Test, Throwable)
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
TestListener.addFailure(Test, AssertionFailedError)
public void close()
close
in interface java.io.Closeable
close
in class java.io.PrintStream
public void startTestCase(junit.framework.TestCase test)
ResultPrinter
startTestCase
in class ResultPrinter
test
- the TestSuite we are entering.TestListener.startTest(Test)
private java.lang.String getCleanName(junit.framework.Test t)
public void endTestCase(junit.framework.TestCase test)
ResultPrinter
endTestCase
in class ResultPrinter
TestListener.endTest(Test)
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 test suite 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 |