public class MockingValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
NON_MOCKABLE_CORE_OPERATIONS |
static List<String> |
SPECIAL_CORE_OPERATIONS |
| Constructor and Description |
|---|
MockingValidator(org.mule.runtime.api.component.location.ComponentLocation location) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowMocking()
Validates if the
ComponentLocation allow to be spy or not. |
String |
getBaseErrorMessage() |
Boolean |
isBehaviorValid(MockBehavior behavior)
Based on the given
ComponentLocation validates if the MockBehavior tries to set an invalid value. |
public MockingValidator(org.mule.runtime.api.component.location.ComponentLocation location)
public Boolean allowMocking()
ComponentLocation allow to be spy or not. It works a black list, allowing spy for any component
location save those black listed.ComponentLocation does not allow mocking, true otherwisepublic Boolean isBehaviorValid(MockBehavior behavior)
ComponentLocation validates if the MockBehavior tries to set an invalid value.behavior - a MockBehaviorpublic String getBaseErrorMessage()
Copyright © 2018. All rights reserved.