Deprecated API


Contents
Deprecated Classes
com.beust.testng.TestNG
          Use org.testng.TestNG 
com.beust.testng.TestNGAntTask
          Use org.testng.TestNGAntTask 
 

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.xml.SuiteGenerator.createCustomizedSuite(String, Collection, Collection, Collection, Collection, Map, String, int)
          use SuiteGenerator.createSuite(String, java.util.Collection, java.util.Map, java.util.Collection, java.util.Map, String, int) instead. 
org.testng.TestNG.getDefault()
          since 5.1 
org.testng.xml.XmlSuite.getExpression()
          use getBeanShelltExpression() 
org.testng.internal.annotations.IParameterizable.getParameters()
          Use @Parameters 
org.testng.reporters.FailedReporter.onFinish(ITestContext)
          this class is used now as IReporter 
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.Factory.parameters
          Use @Parameters 
org.testng.annotations.Test.parameters
          Use @Parameters 
org.testng.annotations.Configuration.parameters
          Use @Parameters 
 



Copyright © 2010. All Rights Reserved.