Package org.objenesis.tck
Interface Reporter
-
- All Known Implementing Classes:
TextReporter
public interface Reporter
Reports results from the TCK back to the user.The sequence these methods are called is described below:
startTests(startTest(result | exception)) * endTests
- See Also:
TCK
,TextReporter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
startTests
void startTests(java.lang.String platformDescription, Objenesis objenesisStandard, Objenesis objenesisSerializer)
Report that the tests are starting. Provides information that is useful to be reported.- Parameters:
platformDescription
- Description the platform being run on (i.e. JVM version, vendor, etc)objenesisStandard
- Standard Objenesis instance usedobjenesisSerializer
- Serialization Objenesis instance used
-
startTest
void startTest(Candidate candidate)
Report that a test between a candidate and an objenesis instance is about to start.- Parameters:
candidate
- Starting to test this candidate.
-
result
void result(Candidate.CandidateType type, boolean worked)
Report details about what happened when performing an instantiation test or a serialization feature test.- Parameters:
type
- type of testworked
- Whether the test was successful or not
-
exception
void exception(Candidate.CandidateType type, java.lang.Exception exception)
Report that something bad happened during the test.- Parameters:
type
- type of testexception
- Exception thrown
-
endTests
void endTests()
Report that all tests have finished. Nothing will be called after this method.
-
-