public class TCK
extends java.lang.Object
Objenesiss.
This TCK tests Objenesis implementations against a set of candidate classes (class it attempts to instantiate),
reporting the results to a Reporter.
TextReporter reporter = new TextReporter(System.out, System.err); TCK tck = new TCK(new ObjenesisStd(), new ObjenesisSerializer(), reporter); tck.runTests(reporter); reporter.printResults();
ObjectInstantiator,
Reporter,
Main| Constructor and Description |
|---|
TCK(Objenesis objenesisStandard,
Objenesis objenesisSerializer,
Reporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
describePlatform()
Describes the platform.
|
protected void |
loadCandidates() |
void |
registerCandidate(java.lang.Class<?> candidateClass,
java.lang.String description,
Candidate.CandidateType type)
Register a candidate class to attempt to instantiate.
|
void |
runTests()
Run all TCK tests.
|
public TCK(Objenesis objenesisStandard, Objenesis objenesisSerializer, Reporter reporter)
objenesisStandard - Objenesis instance used to instantiate classes the standard way (no constructor called)objenesisSerializer - Objenesis instance used to instantiate classes in a serialization compliant way (first not serializable constructor called)reporter - Where to report the results of the tests toprotected void loadCandidates()
throws java.io.IOException
java.io.IOExceptionpublic void registerCandidate(java.lang.Class<?> candidateClass,
java.lang.String description,
Candidate.CandidateType type)
candidateClass - Class to attempt to instantiatedescription - Description of the classpublic void runTests()
protected java.lang.String describePlatform()