Ignore unit test: cannot find Symbol

java, unit-testing

Solution

Add `import org.junit.Ignore;` as import statement

Problem

I am trying to ignore a unit test, I have a test class similar to ``` @Test public void testSomething() throws Exception { testcode } ``` When I put `@Ignore` above `@Test` the execution fails with message error: cannot find symbol What is the correct way to ignore a test?

Original source