| Constructor and Description |
|---|
TextReporter(PrintStream summary,
PrintStream log) |
| Modifier and Type | Method and Description |
|---|---|
void |
endTests()
Report that all tests have finished.
|
void |
exception(Candidate.CandidateType type,
Exception exception)
Report that something bad happened during the test.
|
boolean |
hasErrors()
Return true if the reporter has registered some errors
|
void |
result(Candidate.CandidateType type,
boolean success)
Report details about what happened when performing an instantiation test or a serialization feature test.
|
void |
startTest(Candidate candidate)
Report that a test between a candidate and an objenesis instance is about to start.
|
void |
startTests(String platformDescription,
Objenesis objenesisStandard,
Objenesis objenesisSerializer)
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, Objenesis objenesisStandard, Objenesis objenesisSerializer)
ReporterstartTests in interface ReporterplatformDescription - Description the platform being run on (i.e. JVM version, vendor, etc)objenesisStandard - Standard Objenesis instance usedobjenesisSerializer - Serialization Objenesis instance usedpublic void startTest(Candidate candidate)
Reporterpublic void result(Candidate.CandidateType type, boolean success)
Reporterpublic void exception(Candidate.CandidateType type, Exception exception)
Reporterpublic void endTests()
Reporterpublic boolean hasErrors()
Copyright © 2006–2018 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.