TestNG Tutorial 3 – Ignore Test
Written on May 11, 2009 at 1:58 pm by
mkyong
This “Ignored” means the method is not ready to test, the TestNG engine will just bypass this method.
import org.testng.annotations.*; /** * TestNG Ignore Test * @author mkyong * */ public class TestNGTest3 { @Test(enabled=false) public void divisionWithException() { System.out.println("Method is not ready yet"); } }
In above example, TestNG will not test the divisionWithException() method.
Oracle Magazine (Free)
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world\'s largest enterprise software company.
Publisher : Oracle Corporation



[...] Tutorial 3 – Ignore Test Ignore certain method for unit test. [...]