This “Ignored” means the method is not ready to test, the JUnit engine will just bypass this method.
import org.junit.*; /** * JUnit Ignore Test * * */ public class JunitTest3 { @Ignore("Not Ready to Run") @Test public void divisionWithException() { System.out.println("Method is not ready yet"); } }
In above example, JUnit will not test the divisionWithException() method.
No comments:
Post a Comment