From b94927246e3f1bd2832c61933553acd2abfee0bd Mon Sep 17 00:00:00 2001 From: Ernst-Christoph Schrewe Date: Wed, 24 Jul 2024 08:01:52 +0200 Subject: [PATCH] fix: variable name --- .../common/edc/logic/service/EdcAdapterServiceTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/test/java/org/eclipse/tractusx/puris/backend/common/edc/logic/service/EdcAdapterServiceTest.java b/backend/src/test/java/org/eclipse/tractusx/puris/backend/common/edc/logic/service/EdcAdapterServiceTest.java index 2b0320c0..0f786251 100644 --- a/backend/src/test/java/org/eclipse/tractusx/puris/backend/common/edc/logic/service/EdcAdapterServiceTest.java +++ b/backend/src/test/java/org/eclipse/tractusx/puris/backend/common/edc/logic/service/EdcAdapterServiceTest.java @@ -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); }