TestNG : Java Testing Next Generation :: Ignore Example
TestNG Ignore Example |
This “Ignored” means the method is not ready to test, the TestNG engine will just bypass this method.
package com.javaskool;
import org.testng.annotations.Test;
public class TestExample {
@Test(enabled=false)
public void MethodNotReady() {
System.out.println("Method is not ready yet");
}
@Test(enabled=true)
public void MethodReady() {
System.out.println("Method is ready to Test");
}
}
Downloads Examples |
Recent Comments