public class RequiresConnectivity
extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
RequiresConnectivity(String connectivityUrl)
Constructs a JUnit Rule to assume connectivity to a provided URL.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
before() |
static boolean |
checkConnectivity(String connectivityUrl)
Checks that a connection can be established to a provided URL.
|
public RequiresConnectivity(String connectivityUrl)
connectivityUrl - the URL to check connectivity to.protected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowablepublic static boolean checkConnectivity(String connectivityUrl)
connectivityUrl - the URL to check connectivity to.true if there is connectivity to the provided url, false otherwise.Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.