public class TemporaryQueueRule extends Object implements org.mule.munit.runner.component.rules.TestRule, org.mule.runtime.api.lifecycle.Initialisable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_QUEUE_NAME |
protected org.mule.runtime.core.api.util.queue.QueueManager |
queueManager |
| Constructor and Description |
|---|
TemporaryQueueRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.mule.munit.runner.component.rules.TestDescription testDescription) |
void |
initialise() |
Serializable |
pop(String queueName,
Long timeOut) |
void |
push(Serializable value,
String queueName) |
void |
reset() |
static int |
size(String queueName)
Returns the size of the queue associated with the give name.
|
public static final String DEFAULT_QUEUE_NAME
@Inject @Named(value="_muleQueueManager") protected org.mule.runtime.core.api.util.queue.QueueManager queueManager
public void apply(org.mule.munit.runner.component.rules.TestDescription testDescription)
apply in interface org.mule.munit.runner.component.rules.TestRulepublic void push(Serializable value, String queueName)
public Serializable pop(String queueName, Long timeOut)
public static int size(String queueName)
queueName - name of the queuepublic void reset()
reset in interface org.mule.munit.runner.component.rules.TestRulepublic void initialise()
initialise in interface org.mule.runtime.api.lifecycle.InitialisableCopyright © 2023 MuleSoft, Inc.. All rights reserved.