|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objenesis.tck.TCK
public class TCK
Technology Compatibility Kit (TCK) for Objenesis
s.
Reporter
.
TCK tck = new TCK(); // register candidate classes. tck.registerCandidate(SomeClass.class, "A basic class"); tck.registerCandidate(SomeEvil.class, "Something evil"); tck.registerCandidate(NotEvil.class, "Something nice"); // register Objenesis instances. tck.registerObjenesisInstance(new ObjenesisStd(), "Objenesis"); tck.registerObjenesisInstance(new ObjenesisSerializaer(), "Objenesis for serialization"); // go! Reporter reporter = new TextReporter(System.out, System.err); tck.runTests(reporter);
ObjectInstantiator
,
Reporter
,
Main
Constructor Summary | |
---|---|
TCK()
|
Method Summary | |
---|---|
protected java.lang.String |
describePlatform()
Describes the platform. |
void |
registerCandidate(java.lang.Class candidateClass,
java.lang.String description)
Register a candidate class to attempt to instantiate. |
void |
registerObjenesisInstance(Objenesis objenesis,
java.lang.String description)
Register an Objenesis instance to use when attempting to instantiate a class. |
void |
runTests(Reporter reporter)
Run all TCK tests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TCK()
Method Detail |
---|
public void registerCandidate(java.lang.Class candidateClass, java.lang.String description)
candidateClass
- Class to attempt to instantiatedescription
- Description of the classpublic void registerObjenesisInstance(Objenesis objenesis, java.lang.String description)
objenesis
- Tested Objenesis instancedescription
- Description of the Objenesis instancepublic void runTests(Reporter reporter)
reporter
- Where to report the results of the test to.protected java.lang.String describePlatform()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |