public class ActiveMQBroker
extends org.junit.rules.ExternalResource
TestRule which starts an BrokerService.
It automatically allocates a dynamic port and exposes the selected port on a system property under a configurable key.
| Modifier and Type | Field and Description |
|---|---|
protected org.mule.tck.junit4.rule.DynamicPort |
dynamicPort |
| Constructor and Description |
|---|
ActiveMQBroker(String amqBrokerPortName)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
int |
getConnectionsCount() |
String |
getConnectorUrl() |
void |
start() |
void |
stop() |
public ActiveMQBroker(String amqBrokerPortName)
amqBrokerPortName - the name of the system property on which the port will be exposedpublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleapply in class org.junit.rules.ExternalResourcepublic void start()
public void stop()
public String getConnectorUrl()
public int getConnectionsCount()
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.