Fix unit tests for DirectPolicyChain
@@ -39,6 +39,10 @@ public class DirectPolicyChain extends NoOpPolicyChain {
@Override
public void doNext(Request request, Response response) {
+ if (policyResult.isFailure()) {
errorHandler.handle(new PolicyChainProcessorFailure(policyResult));
+ } else {
+ resultHandler.handle(policyResult);
+ }
}
}
\ No newline at end of file
