|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objenesis.tck.TextReporter
public class TextReporter
Reports results from TCK as tabulated text, suitable for dumping to the console or a file and being read by a human. If can be reused to provide a summary reports of different candidates as long as the same objenesisDescription is not used twice.
TCK
,
Reporter
Constructor Summary | |
---|---|
TextReporter(PrintStream summary,
PrintStream log)
|
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(Exception exception)
Report that something bad happened during the test. |
void |
printResult(boolean parentConstructorTest)
Print the final summary report |
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 allInstantiators)
Report that the tests are starting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextReporter(PrintStream summary, PrintStream log)
summary
- Output of main report.log
- Any additional information, useful for diagnostics.Method Detail |
---|
public void startTests(String platformDescription, Collection allCandidates, Collection allInstantiators)
Reporter
startTests
in interface Reporter
platformDescription
- Description the platform being run on (i.e. JVM version, vendor,
etc).allCandidates
- Descriptions (String) of all candidates being used in tests.allInstantiators
- Descriptions of all Objenesis instances being used in tests.public void startTest(String candidateDescription, String objenesisDescription)
Reporter
startTest
in interface Reporter
candidateDescription
- Description of the candidate class.objenesisDescription
- Description of the objenesis instance.public void result(boolean instantiatedObject)
Reporter
result
in interface Reporter
instantiatedObject
- Whether the ObjectInstantiator successfully instantiated the
candidate class.public void exception(Exception exception)
Reporter
exception
in interface Reporter
exception
- Exception thrown by instantiator.public void endTest()
Reporter
endTest
in interface Reporter
public void endTests()
Reporter
endTests
in interface Reporter
public void printResult(boolean parentConstructorTest)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |