Class ClassSource

  • All Implemented Interfaces:
    Serializable, TestSource

    @API(status=STABLE,
         since="1.0")
    public class ClassSource
    extends Object
    implements TestSource
    Class based TestSource with an optional file position.

    If a Java Class reference is provided, the ClassSource will contain that Class and its class name accordingly. If a class name is provided, the ClassSource will contain the class name and will only attempt to lazily load the Class if getJavaClass() is invoked.

    In this context, Java Class means anything that can be referenced as a Class on the JVM — for example, classes from other JVM languages such Groovy, Scala, etc.

    Since:
    1.0
    See Also:
    ClassSelector, Serialized Form