Skip to content

Instantly share code, notes, and snippets.

@thomaslee
Created January 21, 2014 20:58
Show Gist options
  • Save thomaslee/8548264 to your computer and use it in GitHub Desktop.
Save thomaslee/8548264 to your computer and use it in GitHub Desktop.
import static org.junit.Before.*;
import static org.junit.Assume.*;
@Before
public void before() {
// if this check fails, the test is skipped. Neat eh?
assumeTrue(new File("/path/to/archive/file.events").exists());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment