public interface Reporter
The sequence these methods are called is described below:
startTests(startObjenesis(result | exception) * endObjenesis) * endTests
TCK
,
TextReporter
Modifier and Type | Method and Description |
---|---|
void |
endTest()
Report that tests have been completed for a particular Objenesis instance and candidate.
|
void |
endTests()
Report that all tests have finished.
|
void |
exception(Exception exception)
Report that something bad happened during the test.
|
void |
result(boolean instantiatedObject)
Report details about what happened when an Objenesis instance tried to instantiate the current
candidate.
|
void |
startTest(String candidateDescription,
String objenesisDescription)
Report that a test between a candidate and an objenesis instance if about to start.
|
void |
startTests(String platformDescription,
Collection allCandidates,
Collection allObjenesisInstances)
Report that the tests are starting.
|
void startTests(String platformDescription, Collection allCandidates, Collection allObjenesisInstances)
platformDescription
- Description the platform being run on (i.e. JVM version, vendor,
etc).allCandidates
- Descriptions (String) of all candidates being used in tests.allObjenesisInstances
- Descriptions of all Objenesis instances being used in tests.void startTest(String candidateDescription, String objenesisDescription)
candidateDescription
- Description of the candidate class.objenesisDescription
- Description of the objenesis instance.void result(boolean instantiatedObject)
instantiatedObject
- Whether the ObjectInstantiator successfully instantiated the
candidate class.void exception(Exception exception)
exception
- Exception thrown by instantiator.void endTest()
void endTests()
Copyright © 2006-2012 Joe Walnes, Henri Tremblay, Leonardo Mesquita. All Rights Reserved.