|
||||||||||
| 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(java.io.PrintStream summary,
java.io.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(java.lang.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(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 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(java.io.PrintStream summary,
java.io.PrintStream log)
summary - Output of main report.log - Any additional information, useful for diagnostics.| Method Detail |
|---|
public void startTests(java.lang.String platformDescription,
java.util.Collection allCandidates,
java.util.Collection allInstantiators)
Reporter
startTests in interface ReporterplatformDescription - 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(java.lang.String candidateDescription,
java.lang.String objenesisDescription)
Reporter
startTest in interface ReportercandidateDescription - Description of the candidate class.objenesisDescription - Description of the objenesis instance.public void result(boolean instantiatedObject)
Reporter
result in interface ReporterinstantiatedObject - Whether the ObjectInstantiator successfully instantiated the
candidate class.public void exception(java.lang.Exception exception)
Reporter
exception in interface Reporterexception - Exception thrown by instantiator.public void endTest()
Reporter
endTest in interface Reporterpublic void endTests()
Reporter
endTests in interface Reporterpublic void printResult(boolean parentConstructorTest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||