public class TestConnectivityUtils extends Object
| Constructor and Description |
|---|
TestConnectivityUtils(org.mule.runtime.api.artifact.Registry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertFailedConnection(String configName,
org.hamcrest.Matcher<Exception> exceptionMatcher,
org.hamcrest.Matcher<org.mule.runtime.api.message.ErrorType> errorTypeMatcher)
Executes as test connectivity over a the connection bind with the given
configName and asserts a failed
connectivity test. |
void |
assertSuccessConnection(String configName)
Executes a test connectivity and excepts that it finish correctly
|
static SystemProperty |
disableAutomaticTestConnectivity()
Injects a System property to disable automatic test connectivity when the Mule app starts
|
public TestConnectivityUtils(org.mule.runtime.api.artifact.Registry registry)
public void assertSuccessConnection(String configName)
configName - name of the Config to do a test connectivitypublic void assertFailedConnection(String configName, org.hamcrest.Matcher<Exception> exceptionMatcher, org.hamcrest.Matcher<org.mule.runtime.api.message.ErrorType> errorTypeMatcher)
configName and asserts a failed
connectivity test.configName - name of the Config to do a test connectivityexceptionMatcher - matcher to assert characteristics of the failed test connectivityerrorTypeMatcher - matcher to assert characteristics of the given ErrorTypepublic static SystemProperty disableAutomaticTestConnectivity()
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.