onknows
onknows

Reputation: 6701

Ignore unit test: cannot find Symbol

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?

Upvotes: 4

Views: 5166

Answers (2)

gpanda
gpanda

Reputation: 3530

I met this problem because of my typo "Ingore" in the import statement :)

Upvotes: 1

Sanjeet
Sanjeet

Reputation: 2403

Add import org.junit.Ignore; as import statement

Upvotes: 7

Related Questions