public abstract class AbstractMuleRuntimeTestCase extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractMuleRuntimeTestCase.CheckedConsumer<T> |
| Modifier and Type | Field and Description |
|---|---|
org.mule.tck.junit4.rule.DynamicPort |
agentPort |
protected static int |
DEFAULT_CONTROLLER_OPERATION_TIMEOUT |
protected static int |
DEFAULT_START_POLL_DELAY |
protected static int |
DEFAULT_START_POLL_INTERVAL |
protected static int |
DEFAULT_START_TIMEOUT |
protected org.mule.tooling.client.api.configuration.agent.AgentConfiguration |
defaultAgentConfiguration |
protected org.mule.maven.client.api.model.MavenConfiguration |
defaultMavenConfiguration |
protected List<org.apache.commons.lang3.tuple.ImmutablePair<String,String>> |
defaultMuleStartArguments |
protected Optional<org.mule.runtime.module.embedded.api.EmbeddedContainer> |
embeddedContainerOptional |
static String |
HTTP |
static String |
MULE_AGENT_VERSION |
static String |
MULE_RUNTIME_TOOLING_CLIENT |
static String |
MULE_TOOLING_API_VERSION |
protected static String |
muleDir |
protected MuleStandaloneController |
muleStandaloneController |
static Supplier<File> |
POM_FOLDER_FINDER |
static String |
REST_AGENT_TRANSPORT_PORT_SYS_PROP |
static String |
RUNTIMES_FOLDER |
protected RuntimeType |
runtimeType |
static org.junit.rules.TemporaryFolder |
temporaryFolder |
| Constructor and Description |
|---|
AbstractMuleRuntimeTestCase(RuntimeType runtimeType) |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
static void |
checkDisposedApps() |
protected void |
cleanUpRemoteServerTlsConfiguration() |
static Collection<Object[]> |
data() |
protected void |
doWithFetchedToolingArtifact(org.mule.tooling.client.api.ToolingRuntimeClient toolingRuntimeClient,
String id,
AbstractMuleRuntimeTestCase.CheckedConsumer<org.mule.tooling.client.api.artifact.ToolingArtifact> consumer) |
protected void |
doWithToolingArtifact(org.mule.tooling.client.api.ToolingRuntimeClient toolingRuntimeClient,
URL applicationContentUrl,
AbstractMuleRuntimeTestCase.CheckedConsumer<org.mule.tooling.client.api.artifact.ToolingArtifact> consumer) |
protected void |
doWithToolingArtifactWithoutDispose(org.mule.tooling.client.api.ToolingRuntimeClient toolingRuntimeClient,
URL applicationContentUrl,
Consumer<org.mule.tooling.client.api.artifact.ToolingArtifact> consumer) |
protected String |
getAgentApplicationsUrl() |
protected String |
getAgentToolingUrl() |
protected String |
getAgentUrl() |
static String |
getMuleVersion() |
protected String |
getProtocol() |
protected List<org.apache.commons.lang3.tuple.ImmutablePair<String,String>> |
getStartupSystemProperties() |
protected boolean |
isStartMuleBeforeEachTest() |
protected void |
startMuleRuntime() |
static URL |
toUrl(URI uri) |
protected void |
validateAgentIsUpAndRunning() |
protected static final int DEFAULT_START_TIMEOUT
protected static final int DEFAULT_START_POLL_INTERVAL
protected static final int DEFAULT_START_POLL_DELAY
protected static final int DEFAULT_CONTROLLER_OPERATION_TIMEOUT
public static final String HTTP
public static final String RUNTIMES_FOLDER
public static final String REST_AGENT_TRANSPORT_PORT_SYS_PROP
public static final String MULE_RUNTIME_TOOLING_CLIENT
public static final String MULE_TOOLING_API_VERSION
public static final String MULE_AGENT_VERSION
protected static String muleDir
protected final RuntimeType runtimeType
protected MuleStandaloneController muleStandaloneController
protected org.mule.tooling.client.api.configuration.agent.AgentConfiguration defaultAgentConfiguration
protected org.mule.maven.client.api.model.MavenConfiguration defaultMavenConfiguration
protected List<org.apache.commons.lang3.tuple.ImmutablePair<String,String>> defaultMuleStartArguments
protected Optional<org.mule.runtime.module.embedded.api.EmbeddedContainer> embeddedContainerOptional
public static org.junit.rules.TemporaryFolder temporaryFolder
public org.mule.tck.junit4.rule.DynamicPort agentPort
public AbstractMuleRuntimeTestCase(RuntimeType runtimeType)
public static Collection<Object[]> data()
protected String getAgentUrl()
protected String getAgentToolingUrl()
protected String getAgentApplicationsUrl()
protected void cleanUpRemoteServerTlsConfiguration()
public static String getMuleVersion()
protected void startMuleRuntime()
protected void validateAgentIsUpAndRunning()
protected String getProtocol()
public final void after()
public static void checkDisposedApps()
protected List<org.apache.commons.lang3.tuple.ImmutablePair<String,String>> getStartupSystemProperties()
protected boolean isStartMuleBeforeEachTest()
protected void doWithToolingArtifactWithoutDispose(org.mule.tooling.client.api.ToolingRuntimeClient toolingRuntimeClient,
URL applicationContentUrl,
Consumer<org.mule.tooling.client.api.artifact.ToolingArtifact> consumer)
protected void doWithToolingArtifact(org.mule.tooling.client.api.ToolingRuntimeClient toolingRuntimeClient,
URL applicationContentUrl,
AbstractMuleRuntimeTestCase.CheckedConsumer<org.mule.tooling.client.api.artifact.ToolingArtifact> consumer)
protected void doWithFetchedToolingArtifact(org.mule.tooling.client.api.ToolingRuntimeClient toolingRuntimeClient,
String id,
AbstractMuleRuntimeTestCase.CheckedConsumer<org.mule.tooling.client.api.artifact.ToolingArtifact> consumer)
Copyright © 2017 MuleSoft, Inc.. All rights reserved.