public class TextReporter extends Object implements Reporter
| Constructor and Description |
|---|
TextReporter(PrintStream summary,
PrintStream log) |
| Modifier and Type | Method and Description |
|---|---|
void |
endTest()
Report that tests have been completed for a particular Objenesis instance and candidate.
|
void |
endTests()
Report that all tests have finished.
|
void |
exception(Exception exception)
Report that something bad happened during the test.
|
void |
printResult(boolean parentConstructorTest)
Print the final summary report
|
void |
result(boolean instantiatedObject)
Report details about what happened when an Objenesis instance tried to instantiate the current
candidate.
|
void |
startTest(String candidateDescription,
String objenesisDescription)
Report that a test between a candidate and an objenesis instance if about to start.
|
void |
startTests(String platformDescription,
Collection allCandidates,
Collection allInstantiators)
Report that the tests are starting.
|
public TextReporter(PrintStream summary, PrintStream log)
summary - Output of main report.log - Any additional information, useful for diagnostics.public void startTests(String platformDescription, Collection allCandidates, Collection allInstantiators)
ReporterstartTests in interface ReporterplatformDescription - Description the platform being run on (i.e. JVM version, vendor,
etc).allCandidates - Descriptions (String) of all candidates being used in tests.allInstantiators - Descriptions of all Objenesis instances being used in tests.public void startTest(String candidateDescription, String objenesisDescription)
Reporterpublic void result(boolean instantiatedObject)
Reporterpublic void exception(Exception exception)
Reporterpublic void endTest()
Reporterpublic void endTests()
Reporterpublic void printResult(boolean parentConstructorTest)
Copyright © 2006-2016 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All Rights Reserved.