Search in sources :

Example 1 with ProtectedTasksPolicy

use of com.walmartlabs.concord.policyengine.ProtectedTasksPolicy in project concord by walmartlabs.

the class ConcordExecutionContextTest method policyEngine.

private static PolicyEngine policyEngine() {
    ProtectedTasksPolicy protectedTasksPolicy = mock(ProtectedTasksPolicy.class);
    when(protectedTasksPolicy.isProtected(eq("task"))).thenReturn(true);
    PolicyEngine policyEngine = mock(PolicyEngine.class);
    when(policyEngine.getProtectedTasksPolicy()).thenReturn(protectedTasksPolicy);
    return policyEngine;
}
Also used : ProtectedTasksPolicy(com.walmartlabs.concord.policyengine.ProtectedTasksPolicy) PolicyEngine(com.walmartlabs.concord.policyengine.PolicyEngine)

Aggregations

PolicyEngine (com.walmartlabs.concord.policyengine.PolicyEngine)1 ProtectedTasksPolicy (com.walmartlabs.concord.policyengine.ProtectedTasksPolicy)1