Skip to content

Commit

Permalink
After-merge fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 7, 2017
1 parent d237105 commit 52fea10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -418,10 +418,12 @@ public Collection<EvaluatedPolicyRule> getPolicyRules() {
public void addPolicyRule(EvaluatedPolicyRule policyRule) {
this.policyRules.add(policyRule);
}
public void clearPolicyRules() {

public void clearPolicyRules() {
policyRules.clear();
}
public void triggerConstraint( EvaluatedPolicyRule rule, EvaluatedPolicyRuleTriggertrigger) throws PolicyViolationException {

public void triggerConstraint( EvaluatedPolicyRule rule, EvaluatedPolicyRuleTrigger trigger) throws PolicyViolationException {
LensUtil.triggerConstraint(rule, trigger, policySituations);
}

Expand Down
Expand Up @@ -42,6 +42,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.function.Consumer;

import static org.testng.AssertJUnit.*;

Expand Down Expand Up @@ -208,7 +209,6 @@ public void test020JackUnassignRoleJudge() throws Exception {
TestUtil.assertSuccess(result);

dumpPolicyRules(context);
dumpPolicySituations(context);

assertEvaluatedRules(context, 4);
assertTriggeredRules(context, 2, PolicyConstraintKindType.ASSIGNMENT);
Expand Down Expand Up @@ -519,7 +519,6 @@ public void test210AssignRoleEmployeeToJack() throws Exception {
//display("Output evaluatedAssignmentTriple", evaluatedAssignmentTriple);

dumpPolicyRules(context);
dumpPolicySituations(context);

// Judge: criminal-exclusion, unassignment, all-assignment-operations
// Employee: approve-any-corp-role, notify-exclusion-violations, employee-excludes-contractor
Expand Down Expand Up @@ -565,7 +564,6 @@ public void test220AssignRoleEngineerToJack() throws Exception {
//display("Output evaluatedAssignmentTriple", evaluatedAssignmentTriple);

dumpPolicyRules(context);
dumpPolicySituations(context);

// Judge: L:criminal-exclusion, L:unassignment, L:all-assignment-operations
// Contractor: L:approve-any-corp-role, L:notify-exclusion-violations, L:contractor-excludes-employee
Expand Down

0 comments on commit 52fea10

Please sign in to comment.