The “Ignored” means whether it should ignore the unit test.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import org.junit.*;
 
/**
 * JUnit Ignore Test
 * @author mkyong
 *
 */
public class JunitTest3 {
 
	@Ignore("Not Ready to Run")  
	@Test
	public void divisionWithException() {  
	  System.out.println("Method is not ready yet");
	}  
 
}

Result

unit test ignored