Skip to content

Instantly share code, notes, and snippets.

@RainerW
Created June 26, 2012 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RainerW/2998974 to your computer and use it in GitHub Desktop.
Save RainerW/2998974 to your computer and use it in GitHub Desktop.
JUnit #25 Test
package com.example.junit25;
import org.junit.Test;
import org.junit.internal.AssumptionViolatedException;
import org.junit.runner.RunWith;
@RunWith(JUnit4AssumtionRunner.class)
public class JUnit4AssumtionRunnerTest {
@Test
public void ignored() {
throw new AssumptionViolatedException("ignore");
}
@Test
public void notIgnored() {
System.out.println("notIgnored");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment