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)
Reporter
startTests
in interface Reporter
platformDescription
- 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)
Reporter
public void result(Candidate.CandidateType type, boolean success)
Reporter
public void exception(Candidate.CandidateType type, Exception exception)
Reporter
public void endTests()
Reporter
public boolean hasErrors()
Copyright © 2006–2021 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All rights reserved.