Skip to content

Commit

Permalink
Provide access to the wrapped ConsentService delegates for testing (#…
Browse files Browse the repository at this point in the history
…6694)

Add getters to delegating ConsentService classes
  • Loading branch information
michaelabuckley authored Feb 8, 2025
1 parent 637a79f commit ebb016f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public void completeOperationFailure(
myTarget.completeOperationFailure(theRequestDetails, theException, theContextServices);
}

public IConsentService getTarget() {
return myTarget;
}

public void setTarget(IConsentService theTarget) {
myTarget = theTarget;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@ public ConsentOutcome willSeeResource(
return myVoteCombiner.apply(myDelegates.stream()
.map(nextDelegate -> nextDelegate.willSeeResource(theRequestDetails, theResource, theContextServices)));
}

public Collection<IConsentService> getDelegates() {
return myDelegates;
}
}

0 comments on commit ebb016f

Please sign in to comment.