Class ClassImpl

  • All Implemented Interfaces:
    IClass

    public class ClassImpl
    extends Object
    implements IClass
    Implementation of an IClass.
    • Method Detail

      • getTestName

        public String getTestName()
        Description copied from interface: IClass
        If this class implements org.testng.ITest, returns its test name, otherwise returns null.
        Specified by:
        getTestName in interface IClass
      • getName

        public String getName()
        Specified by:
        getName in interface IClass
        Returns:
        this test class name. This is the name of the corresponding Java class.
      • getRealClass

        public Class getRealClass()
        Specified by:
        getRealClass in interface IClass
        Returns:
        the Java class corresponding to this IClass.
      • getInstanceCount

        @Deprecated
        public int getInstanceCount()
        Deprecated.
        Specified by:
        getInstanceCount in interface IClass
        Returns:
        The number of instances used in this class. This method is needed for serialization since we don't know ahead of time if the instances of the test classes will be serializable.
      • getXmlTest

        public XmlTest getXmlTest()
        Specified by:
        getXmlTest in interface IClass
        Returns:
        the <test> tag this class was found in.
      • getXmlClass

        public XmlClass getXmlClass()
        Specified by:
        getXmlClass in interface IClass
        Returns:
        the *lt;class> tag this class was found in.
      • getParentInjector

        public com.google.inject.Injector getParentInjector()
      • getInstances

        public Object[] getInstances​(boolean create)
        Description copied from interface: IClass
        Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.
        Specified by:
        getInstances in interface IClass
        Parameters:
        create - flag if a new set of instances must be returned (if set to false)
        Returns:
        All the instances the methods will be invoked upon.