Onno Onno - 7 months ago 47
Java Question

Ignore unit test: cannot find Symbol

I am trying to ignore a unit test, I have a test class similar to

public void testSomething() throws Exception {



When I put
the execution fails with message

error: cannot find symbol

What is the correct way to ignore a test?

Answer Source

Add import org.junit.Ignore; as import statement

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download