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(startObjenesis(result | exception) * endObjenesis) * endTests
 

Author:
Joe Walnes
See Also:
TCK, TextReporter

Method Summary
 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(java.lang.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(java.lang.String candidateDescription, java.lang.String objenesisDescription)
          Report that a test between a candidate and an objenesis instance if about to start.
 void startTests(java.lang.String platformDescription, java.util.Collection allCandidates, java.util.Collection allObjenesisInstances)
          Report that the tests are starting.
 

Method Detail

startTests

void startTests(java.lang.String platformDescription,
                java.util.Collection allCandidates,
                java.util.Collection allObjenesisInstances)
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).
allCandidates - Descriptions (String) of all candidates being used in tests.
allObjenesisInstances - Descriptions of all Objenesis instances being used in tests.

startTest

void startTest(java.lang.String candidateDescription,
               java.lang.String objenesisDescription)
Report that a test between a candidate and an objenesis instance if about to start.

Parameters:
candidateDescription - Description of the candidate class.
objenesisDescription - Description of the objenesis instance.

result

void result(boolean instantiatedObject)
Report details about what happened when an Objenesis instance tried to instantiate the current candidate.

Parameters:
instantiatedObject - Whether the ObjectInstantiator successfully instantiated the candidate class.

exception

void exception(java.lang.Exception exception)
Report that something bad happened during the test.

Parameters:
exception - Exception thrown by instantiator.

endTest

void endTest()
Report that tests have been completed for a particular Objenesis instance and candidate.


endTests

void endTests()
Report that all tests have finished. Nothing will be called after this method.



Copyright © {inceptionYear}-2009 null. All Rights Reserved.