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;
}
Aggregations