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, \@BeforeGroups, @AfterGroups, @BeforeClass, @AfterClass, @BeforeMethod, \@AfterMethod 
org.testng.annotations.ExpectedExceptions
          Use @Test(expectedExceptions = "...") 
 

Deprecated Methods
org.testng.TestNG.configure(Map)
          use new configure(CommandLineArgs) method 
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.ITestNGMethod.getInstances()
          Use getInstance(). 
org.testng.IMethodInstance.getInstances()
          Use getInstance() 
org.testng.ISuite.getInvokedMethods()
          Use getAllInvokedMthods(). 
org.testng.ITestNGMethod.getMethod()
          This method is deprecated and can now return null. Use getConstructorOrMethod() instead. 
org.testng.annotations.IParameterizable.getParameters()
          Use @Parameters 
org.testng.xml.XmlTest.getParameters()
          Use getLocalParameters() or getAllParameters() 
org.testng.xml.XmlInclude.getParameters()
          Use getLocalParameters() or getAllParameters() 
org.testng.xml.XmlClass.getParameters()
          Use getLocalParameters() or getAllParameters() 
org.testng.TestNG.isJdk14()
           
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.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.Test.parameters
          Use @Parameters 
org.testng.annotations.Factory.parameters
          Use @Parameters 
org.testng.annotations.Configuration.parameters
          Use @Parameters 
org.testng.annotations.Test.sequential
          Use singleThreaded 
 



Copyright © 2012. All Rights Reserved.