org.testng.internal.annotations
Class TestOrConfiguration

java.lang.Object
  extended by org.testng.internal.annotations.BaseAnnotation
      extended by org.testng.internal.annotations.TestOrConfiguration
All Implemented Interfaces:
IAnnotation, IParameterizable, ITestOrConfiguration
Direct Known Subclasses:
BaseBeforeAfter, ConfigurationAnnotation, TestAnnotation

public class TestOrConfiguration
extends BaseAnnotation
implements ITestOrConfiguration


Constructor Summary
TestOrConfiguration()
           
 
Method Summary
 java.lang.String[] getDependsOnGroups()
          The list of groups this method depends on.
 java.lang.String[] getDependsOnMethods()
          The list of methods this method depends on.
 java.lang.String getDescription()
          The description for this method, which will be shown in the reports.
 boolean getEnabled()
          Whether methods on this class/method are enabled.
 java.lang.String[] getGroups()
          The list of groups this class/method belongs to.
 java.lang.String[] getParameters()
          The list of variables used to fill the parameters of this method.
 void setDependsOnGroups(java.lang.String[] dependsOnGroups)
           
 void setDependsOnMethods(java.lang.String[] dependsOnMethods)
           
 void setDescription(java.lang.String description)
           
 void setEnabled(boolean enabled)
           
 void setGroups(java.lang.String[] groups)
           
 void setParameters(java.lang.String[] parameters)
           
 
Methods inherited from class org.testng.internal.annotations.BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestOrConfiguration

public TestOrConfiguration()
Method Detail

getGroups

public java.lang.String[] getGroups()
Description copied from interface: ITestOrConfiguration
The list of groups this class/method belongs to.

Specified by:
getGroups in interface ITestOrConfiguration

getEnabled

public boolean getEnabled()
Description copied from interface: ITestOrConfiguration
Whether methods on this class/method are enabled.

Specified by:
getEnabled in interface ITestOrConfiguration

setDependsOnGroups

public void setDependsOnGroups(java.lang.String[] dependsOnGroups)
Specified by:
setDependsOnGroups in interface ITestOrConfiguration

setDependsOnMethods

public void setDependsOnMethods(java.lang.String[] dependsOnMethods)
Specified by:
setDependsOnMethods in interface ITestOrConfiguration

setGroups

public void setGroups(java.lang.String[] groups)
Specified by:
setGroups in interface ITestOrConfiguration

getDescription

public java.lang.String getDescription()
Description copied from interface: ITestOrConfiguration
The description for this method, which will be shown in the reports.

Specified by:
getDescription in interface ITestOrConfiguration

setEnabled

public void setEnabled(boolean enabled)

getDependsOnGroups

public java.lang.String[] getDependsOnGroups()
Description copied from interface: ITestOrConfiguration
The list of groups this method depends on. Every method member of one of these groups is guaranteed to have been invoked before this method. Furthermore, if any of these methods was not a SUCCESS, this test method will not be run and will be flagged as a SKIP.

Specified by:
getDependsOnGroups in interface ITestOrConfiguration

getDependsOnMethods

public java.lang.String[] getDependsOnMethods()
Description copied from interface: ITestOrConfiguration
The list of methods this method depends on. There is no guarantee on the order on which the methods depended upon will be run, but you are guaranteed that all these methods will be run before the test method that contains this annotation is run. Furthermore, if any of these methods was not a SUCCESS, this test method will not be run and will be flagged as a SKIP. If some of these methods have been overloaded, all the overloaded versions will be run.

Specified by:
getDependsOnMethods in interface ITestOrConfiguration

getParameters

public java.lang.String[] getParameters()
Description copied from interface: IParameterizable
The list of variables used to fill the parameters of this method. These variables must be defined in the property file.

Specified by:
getParameters in interface IParameterizable

setParameters

public void setParameters(java.lang.String[] parameters)

setDescription

public void setDescription(java.lang.String description)


Copyright © 2010. All Rights Reserved.