Class DelegateTestNGMethod

java.lang.Object
io.trino.tempto.internal.initialization.DelegateTestNGMethod
All Implemented Interfaces:
Serializable, Cloneable, Comparable, org.testng.ITestNGMethod
Direct Known Subclasses:
RequirementsAwareTestNGMethod

public abstract class DelegateTestNGMethod extends Object implements org.testng.ITestNGMethod
See Also:
  • Field Details

    • delegate

      protected final org.testng.ITestNGMethod delegate
  • Constructor Details

    • DelegateTestNGMethod

      public DelegateTestNGMethod(org.testng.ITestNGMethod delegate)
  • Method Details

    • getRealClass

      public Class getRealClass()
      Specified by:
      getRealClass in interface org.testng.ITestNGMethod
    • getTestClass

      public org.testng.ITestClass getTestClass()
      Specified by:
      getTestClass in interface org.testng.ITestNGMethod
    • setTestClass

      public void setTestClass(org.testng.ITestClass cls)
      Specified by:
      setTestClass in interface org.testng.ITestNGMethod
    • getMethod

      @Deprecated public Method getMethod()
      Deprecated.
      Specified by:
      getMethod in interface org.testng.ITestNGMethod
    • getMethodName

      public String getMethodName()
      Specified by:
      getMethodName in interface org.testng.ITestNGMethod
    • getInstances

      @Deprecated public Object[] getInstances()
      Deprecated.
      Specified by:
      getInstances in interface org.testng.ITestNGMethod
    • getInstance

      public Object getInstance()
      Specified by:
      getInstance in interface org.testng.ITestNGMethod
    • getInstanceHashCodes

      public long[] getInstanceHashCodes()
      Specified by:
      getInstanceHashCodes in interface org.testng.ITestNGMethod
    • getGroups

      public String[] getGroups()
      Specified by:
      getGroups in interface org.testng.ITestNGMethod
    • getGroupsDependedUpon

      public String[] getGroupsDependedUpon()
      Specified by:
      getGroupsDependedUpon in interface org.testng.ITestNGMethod
    • getMissingGroup

      public String getMissingGroup()
      Specified by:
      getMissingGroup in interface org.testng.ITestNGMethod
    • setMissingGroup

      public void setMissingGroup(String group)
      Specified by:
      setMissingGroup in interface org.testng.ITestNGMethod
    • getBeforeGroups

      public String[] getBeforeGroups()
      Specified by:
      getBeforeGroups in interface org.testng.ITestNGMethod
    • getAfterGroups

      public String[] getAfterGroups()
      Specified by:
      getAfterGroups in interface org.testng.ITestNGMethod
    • getMethodsDependedUpon

      public String[] getMethodsDependedUpon()
      Specified by:
      getMethodsDependedUpon in interface org.testng.ITestNGMethod
    • addMethodDependedUpon

      public void addMethodDependedUpon(String methodName)
      Specified by:
      addMethodDependedUpon in interface org.testng.ITestNGMethod
    • isTest

      public boolean isTest()
      Specified by:
      isTest in interface org.testng.ITestNGMethod
    • isBeforeMethodConfiguration

      public boolean isBeforeMethodConfiguration()
      Specified by:
      isBeforeMethodConfiguration in interface org.testng.ITestNGMethod
    • isAfterMethodConfiguration

      public boolean isAfterMethodConfiguration()
      Specified by:
      isAfterMethodConfiguration in interface org.testng.ITestNGMethod
    • isBeforeClassConfiguration

      public boolean isBeforeClassConfiguration()
      Specified by:
      isBeforeClassConfiguration in interface org.testng.ITestNGMethod
    • isAfterClassConfiguration

      public boolean isAfterClassConfiguration()
      Specified by:
      isAfterClassConfiguration in interface org.testng.ITestNGMethod
    • isBeforeSuiteConfiguration

      public boolean isBeforeSuiteConfiguration()
      Specified by:
      isBeforeSuiteConfiguration in interface org.testng.ITestNGMethod
    • isAfterSuiteConfiguration

      public boolean isAfterSuiteConfiguration()
      Specified by:
      isAfterSuiteConfiguration in interface org.testng.ITestNGMethod
    • isBeforeTestConfiguration

      public boolean isBeforeTestConfiguration()
      Specified by:
      isBeforeTestConfiguration in interface org.testng.ITestNGMethod
    • isAfterTestConfiguration

      public boolean isAfterTestConfiguration()
      Specified by:
      isAfterTestConfiguration in interface org.testng.ITestNGMethod
    • isBeforeGroupsConfiguration

      public boolean isBeforeGroupsConfiguration()
      Specified by:
      isBeforeGroupsConfiguration in interface org.testng.ITestNGMethod
    • isAfterGroupsConfiguration

      public boolean isAfterGroupsConfiguration()
      Specified by:
      isAfterGroupsConfiguration in interface org.testng.ITestNGMethod
    • getTimeOut

      public long getTimeOut()
      Specified by:
      getTimeOut in interface org.testng.ITestNGMethod
    • setTimeOut

      public void setTimeOut(long timeOut)
      Specified by:
      setTimeOut in interface org.testng.ITestNGMethod
    • getInvocationCount

      public int getInvocationCount()
      Specified by:
      getInvocationCount in interface org.testng.ITestNGMethod
    • setInvocationCount

      public void setInvocationCount(int count)
      Specified by:
      setInvocationCount in interface org.testng.ITestNGMethod
    • getTotalInvocationCount

      public int getTotalInvocationCount()
      Specified by:
      getTotalInvocationCount in interface org.testng.ITestNGMethod
    • getSuccessPercentage

      public int getSuccessPercentage()
      Specified by:
      getSuccessPercentage in interface org.testng.ITestNGMethod
    • getId

      public String getId()
      Specified by:
      getId in interface org.testng.ITestNGMethod
    • setId

      public void setId(String id)
      Specified by:
      setId in interface org.testng.ITestNGMethod
    • getDate

      public long getDate()
      Specified by:
      getDate in interface org.testng.ITestNGMethod
    • setDate

      public void setDate(long date)
      Specified by:
      setDate in interface org.testng.ITestNGMethod
    • canRunFromClass

      public boolean canRunFromClass(org.testng.IClass testClass)
      Specified by:
      canRunFromClass in interface org.testng.ITestNGMethod
    • isAlwaysRun

      public boolean isAlwaysRun()
      Specified by:
      isAlwaysRun in interface org.testng.ITestNGMethod
    • getThreadPoolSize

      public int getThreadPoolSize()
      Specified by:
      getThreadPoolSize in interface org.testng.ITestNGMethod
    • setThreadPoolSize

      public void setThreadPoolSize(int threadPoolSize)
      Specified by:
      setThreadPoolSize in interface org.testng.ITestNGMethod
    • getEnabled

      public boolean getEnabled()
      Specified by:
      getEnabled in interface org.testng.ITestNGMethod
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.testng.ITestNGMethod
    • setDescription

      public void setDescription(String description)
      Specified by:
      setDescription in interface org.testng.ITestNGMethod
    • incrementCurrentInvocationCount

      public void incrementCurrentInvocationCount()
      Specified by:
      incrementCurrentInvocationCount in interface org.testng.ITestNGMethod
    • getCurrentInvocationCount

      public int getCurrentInvocationCount()
      Specified by:
      getCurrentInvocationCount in interface org.testng.ITestNGMethod
    • setParameterInvocationCount

      public void setParameterInvocationCount(int n)
      Specified by:
      setParameterInvocationCount in interface org.testng.ITestNGMethod
    • getParameterInvocationCount

      public int getParameterInvocationCount()
      Specified by:
      getParameterInvocationCount in interface org.testng.ITestNGMethod
    • getRetryAnalyzer

      public org.testng.IRetryAnalyzer getRetryAnalyzer()
      Specified by:
      getRetryAnalyzer in interface org.testng.ITestNGMethod
    • setRetryAnalyzer

      public void setRetryAnalyzer(org.testng.IRetryAnalyzer retryAnalyzer)
      Specified by:
      setRetryAnalyzer in interface org.testng.ITestNGMethod
    • skipFailedInvocations

      public boolean skipFailedInvocations()
      Specified by:
      skipFailedInvocations in interface org.testng.ITestNGMethod
    • setSkipFailedInvocations

      public void setSkipFailedInvocations(boolean skip)
      Specified by:
      setSkipFailedInvocations in interface org.testng.ITestNGMethod
    • getInvocationTimeOut

      public long getInvocationTimeOut()
      Specified by:
      getInvocationTimeOut in interface org.testng.ITestNGMethod
    • ignoreMissingDependencies

      public boolean ignoreMissingDependencies()
      Specified by:
      ignoreMissingDependencies in interface org.testng.ITestNGMethod
    • setIgnoreMissingDependencies

      public void setIgnoreMissingDependencies(boolean ignore)
      Specified by:
      setIgnoreMissingDependencies in interface org.testng.ITestNGMethod
    • getInvocationNumbers

      public List<Integer> getInvocationNumbers()
      Specified by:
      getInvocationNumbers in interface org.testng.ITestNGMethod
    • setInvocationNumbers

      public void setInvocationNumbers(List<Integer> numbers)
      Specified by:
      setInvocationNumbers in interface org.testng.ITestNGMethod
    • addFailedInvocationNumber

      public void addFailedInvocationNumber(int number)
      Specified by:
      addFailedInvocationNumber in interface org.testng.ITestNGMethod
    • getFailedInvocationNumbers

      public List<Integer> getFailedInvocationNumbers()
      Specified by:
      getFailedInvocationNumbers in interface org.testng.ITestNGMethod
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface org.testng.ITestNGMethod
    • setPriority

      public void setPriority(int priority)
      Specified by:
      setPriority in interface org.testng.ITestNGMethod
    • getXmlTest

      public org.testng.xml.XmlTest getXmlTest()
      Specified by:
      getXmlTest in interface org.testng.ITestNGMethod
    • getConstructorOrMethod

      public org.testng.internal.ConstructorOrMethod getConstructorOrMethod()
      Specified by:
      getConstructorOrMethod in interface org.testng.ITestNGMethod
    • findMethodParameters

      public Map<String,String> findMethodParameters(org.testng.xml.XmlTest test)
      Specified by:
      findMethodParameters in interface org.testng.ITestNGMethod
    • setMoreInvocationChecker

      public void setMoreInvocationChecker(Callable<Boolean> moreInvocationChecker)
      Specified by:
      setMoreInvocationChecker in interface org.testng.ITestNGMethod
    • hasMoreInvocation

      public boolean hasMoreInvocation()
      Specified by:
      hasMoreInvocation in interface org.testng.ITestNGMethod
    • getQualifiedName

      public String getQualifiedName()
      Specified by:
      getQualifiedName in interface org.testng.ITestNGMethod
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public abstract org.testng.ITestNGMethod clone()
      Specified by:
      clone in interface org.testng.ITestNGMethod
      Overrides:
      clone in class Object