public class MessageProcessorManager extends Object
The Class that manages the mocking process. Gets the behaviors, stores the message processor calls and stores the spy process
| Modifier and Type | Field and Description |
|---|---|
protected List<MessageProcessorBehavior> |
behaviors
These are the behaviors expected for different message processor mocks
|
static String |
ID |
| Constructor and Description |
|---|
MessageProcessorManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehavior(MessageProcessorBehavior behavior) |
protected <T extends MessageProcessorCallAction> |
getBetterMatchingAction(MessageProcessorCall messageProcessorCall,
Collection<T> actions) |
MessageProcessorBehavior |
getBetterMatchingBehavior(MessageProcessorCall messageProcessorCall)
Gets the best matching Behavior.
|
void |
reset()
Reset all the status
|
public static String ID
protected List<MessageProcessorBehavior> behaviors
These are the behaviors expected for different message processor mocks
public void reset()
Reset all the status
public MessageProcessorBehavior getBetterMatchingBehavior(MessageProcessorCall messageProcessorCall)
Gets the best matching Behavior. The best matching behavior is the one that mostly matches the attributes
messageProcessorCall - The comparing callprotected <T extends MessageProcessorCallAction> T getBetterMatchingAction(MessageProcessorCall messageProcessorCall, Collection<T> actions)
public void addBehavior(MessageProcessorBehavior behavior)
Copyright © 2017. All rights reserved.