Created
June 26, 2012 21:00
-
-
Save RainerW/2998974 to your computer and use it in GitHub Desktop.
JUnit #25 Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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