Package org.objenesis.tck
Class TextReporter
- java.lang.Object
-
- org.objenesis.tck.TextReporter
-
-
Constructor Summary
Constructors Constructor Description TextReporter(java.io.PrintStream summary, java.io.PrintStream log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendTests()Report that all tests have finished.voidexception(Candidate.CandidateType type, java.lang.Exception exception)Report that something bad happened during the test.booleanhasErrors()Return true if the reporter has registered some errorsvoidresult(Candidate.CandidateType type, boolean success)Report details about what happened when performing an instantiation test or a serialization feature test.voidstartTest(Candidate candidate)Report that a test between a candidate and an objenesis instance is about to start.voidstartTests(java.lang.String platformDescription, Objenesis objenesisStandard, Objenesis objenesisSerializer)Report that the tests are starting.
-
-
-
Method Detail
-
startTests
public void startTests(java.lang.String platformDescription, Objenesis objenesisStandard, Objenesis objenesisSerializer)Description copied from interface:ReporterReport that the tests are starting. Provides information that is useful to be reported.- Specified by:
startTestsin interfaceReporter- Parameters:
platformDescription- Description the platform being run on (i.e. JVM version, vendor, etc)objenesisStandard- Standard Objenesis instance usedobjenesisSerializer- Serialization Objenesis instance used
-
startTest
public void startTest(Candidate candidate)
Description copied from interface:ReporterReport that a test between a candidate and an objenesis instance is about to start.
-
result
public void result(Candidate.CandidateType type, boolean success)
Description copied from interface:ReporterReport details about what happened when performing an instantiation test or a serialization feature test.
-
exception
public void exception(Candidate.CandidateType type, java.lang.Exception exception)
Description copied from interface:ReporterReport that something bad happened during the test.
-
endTests
public void endTests()
Description copied from interface:ReporterReport that all tests have finished. Nothing will be called after this method.
-
hasErrors
public boolean hasErrors()
Return true if the reporter has registered some errors- Returns:
- if there was errors during execution
-
-