public interface Reporter
The sequence these methods are called is described below:
startTests(startTest(result | exception)) * endTests
TCK,
TextReporter| Modifier and Type | Method and Description |
|---|---|
void |
endTests()
Report that all tests have finished.
|
void |
exception(Candidate.CandidateType type,
java.lang.Exception exception)
Report that something bad happened during the test.
|
void |
result(Candidate.CandidateType type,
boolean worked)
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(java.lang.String platformDescription,
Objenesis objenesisStandard,
Objenesis objenesisSerializer)
Report that the tests are starting.
|
void startTests(java.lang.String platformDescription,
Objenesis objenesisStandard,
Objenesis objenesisSerializer)
platformDescription - Description the platform being run on (i.e. JVM version, vendor, etc)objenesisStandard - Standard Objenesis instance usedobjenesisSerializer - Serialization Objenesis instance usedvoid startTest(Candidate candidate)
candidate - Starting to test this candidate.void result(Candidate.CandidateType type, boolean worked)
type - type of testworked - Whether the test was successful or notvoid exception(Candidate.CandidateType type, java.lang.Exception exception)
type - type of testexception - Exception thrownvoid endTests()