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)
Reporter
startTests
in interface Reporter
platformDescription
- 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)
Reporter
public void result(boolean instantiatedObject)
Reporter
public void exception(Exception exception)
Reporter
public void endTest()
Reporter
public void endTests()
Reporter
public void printResult(boolean parentConstructorTest)
Copyright © 2006-2015 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All Rights Reserved.