java.lang.Object | |
↳ | org.junit.runners.model.TestClass |
Wraps a class to be run, providing method validation and annotation searching
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
TestClass wrapping klass . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns, efficiently, all the non-overridden fields in this class and its
superclasses that are annotated with
annotationClass . | |||||||||||
Returns, efficiently, all the non-overridden methods in this class and
its superclasses that are annotated with
annotationClass . | |||||||||||
Returns the annotations on this class
| |||||||||||
Returns the underlying Java class.
| |||||||||||
Returns the class's name.
| |||||||||||
Returns the only public constructor in the class, or throws an
AssertionError if there are more or less than one. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a TestClass
wrapping klass
. Each time this
constructor executes, the class is scanned for annotations, which can be
an expensive process (we hope in future JDK's it will not be.) Therefore,
try to share instances of TestClass
where possible.
Returns, efficiently, all the non-overridden fields in this class and its
superclasses that are annotated with annotationClass
.
Returns, efficiently, all the non-overridden methods in this class and
its superclasses that are annotated with annotationClass
.
Returns the only public constructor in the class, or throws an AssertionError
if there are more or less than one.