TestNG Tutorial 3 – Ignore Test
Published: May 11, 2009 , Updated: April 1, 2010 , Author: 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.
Any Java questions or problems? please post at this JavaNullPointer.com forum, see you there ~
[...] Tutorial 3 – Ignore Test Ignore certain method for unit test. [...]