Deprecated API


Contents
Deprecated Annotation Types
org.testng.annotations.Configuration
          Use @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest, 
org.testng.annotations.ExpectedExceptions
          Use @Test(expectedExceptions = "...") 
 

Deprecated Fields
org.testng.xml.XmlSuite.JAVADOC
          use JAVADOC_ANNOTATION_TYPE. 
org.testng.TestNGCommandLineArgs.TARGET_COMMAND_OPT
          replaced by DEFAULT_ANNOTATIONS_COMMAND_OPT. 
 

Deprecated Methods
org.testng.TestNG.getDefault()
          since 5.1 
org.testng.xml.XmlSuite.getExpression()
          use getBeanShelltExpression() 
org.testng.xml.XmlTest.setClassNames(List)
          use setXmlClasses 
org.testng.TestNG.setHasFailure(boolean)
          since 5.1 
org.testng.TestNG.setHasFailureWithinSuccessPercentage(boolean)
          since 5.1 
org.testng.TestNG.setHasSkip(boolean)
          since 5.1 
org.testng.TestNGAntTask.setListener(String)
          Use "listeners" 
org.testng.TestNG.setTarget(String)
          use the setDefaultAnnotationType replacement method. 
org.testng.TestNGAntTask.setTarget(String)
          use setAnnotations 
org.testng.TestNG.setTestNGVersion()
          The TestNG version is now established at load time. This method is not required anymore and is now a no-op. 
 

Deprecated Annotation Type Elements
org.testng.annotations.Configuration.parameters
          Use @Parameters 
org.testng.annotations.Factory.parameters
          Use @Parameters 
org.testng.annotations.Test.parameters
          Use @Parameters