Class TextReporter
java.lang.Object
org.objenesis.tck.TextReporter
- All Implemented Interfaces:
Reporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendTests()Report that all tests have finished.voidexception(Candidate.CandidateType type, Exception exception) Report that something bad happened during the test.booleanReturn 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.voidReport that a test between a candidate and an objenesis instance is about to start.voidstartTests(String platformDescription, Objenesis objenesisStandard, Objenesis objenesisSerializer) Report that the tests are starting.
-
Constructor Details
-
TextReporter
- Parameters:
summary- Output of main report.log- Any additional information, useful for diagnostics.
-
-
Method Details
-
startTests
public void startTests(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
-
result
Description copied from interface:ReporterReport details about what happened when performing an instantiation test or a serialization feature test. -
exception
Description copied from interface:ReporterReport that something bad happened during the test. -
endTests
-
hasErrors
public boolean hasErrors()Return true if the reporter has registered some errors- Returns:
- if there was errors during execution
-