Skip to content

Commit

Permalink
fix: variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
eschrewe committed Jul 24, 2024
1 parent dcab4b7 commit b949272
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,16 @@ public void oneConstraint_testContractPolicyConstraints_fails() throws JsonProce
@ValueSource(strings = {unexpectedObligation, unexpectedProhibition})
public void unexpectedRule_testContractPolicyConstraints_fails(String input) throws JsonProcessingException {
// given
JsonNode validJsonNode = objectMapper.readTree(input);
validJsonNode = jsonLdUtils.expand(validJsonNode);
System.out.println(validJsonNode.toPrettyString());
JsonNode invalidJsonNode = objectMapper.readTree(input);
invalidJsonNode = jsonLdUtils.expand(invalidJsonNode);
System.out.println(invalidJsonNode.toPrettyString());

// when
when(variablesService.getPurisFrameworkAgreementWithVersion()).thenReturn("Puris:1.0");
when(variablesService.getPurisPurposeWithVersion()).thenReturn("cx.puris.base:1");

// then
boolean result = edcAdapterService.testContractPolicyConstraints(validJsonNode);
boolean result = edcAdapterService.testContractPolicyConstraints(invalidJsonNode);
assertFalse(result);
}

Expand Down

0 comments on commit b949272

Please sign in to comment.