Skip to content

Instantly share code, notes, and snippets.

@thombergs
Created October 17, 2017 18:57
Show Gist options
  • Save thombergs/b402ec76be243285978dda8ee877c743 to your computer and use it in GitHub Desktop.
Save thombergs/b402ec76be243285978dda8ee877c743 to your computer and use it in GitHub Desktop.
public class ConnectionCheckingTest {
private ConnectionChecker connectionChecker =
new ConnectionChecker("http://my.integration.system");
@Test
public void testOnlyWhenConnected() {
assumeTrue(connectionChecker.connect());
... // your test steps
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment