Class ClassImpl

  • All Implemented Interfaces:
    IClass

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

      • getTestName

        public java.lang.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 java.lang.String getName()
        Specified by:
        getName in interface IClass
        Returns:
        this test class name. This is the name of the corresponding Java class.
      • getRealClass

        public java.lang.Class getRealClass()
        Specified by:
        getRealClass in interface IClass
        Returns:
        the Java class corresponding to this IClass.
      • 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​(IInjectorFactory injectorFactory)
      • getInstances

        public java.lang.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.
      • getInstances

        public java.lang.Object[] getInstances​(boolean create,
                                               java.lang.String errorMsgPrefix)
        Specified by:
        getInstances in interface IClass
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • addInstance

        public void addInstance​(java.lang.Object instance)
        Specified by:
        addInstance in interface IClass