From 5cd7f7261aa5aeb74e2a3957ec5b337d3dd2a8b0 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Mon, 8 Dec 2025 16:00:13 +0000 Subject: [PATCH] Uplift code base to java21 Issue-ID: POLICY-5466 Change-Id: I7136602235f512d342b131322031b57a2c49bea8 Signed-off-by: adheli.tavares --- .../event/carrier/restrequestor/ApexRestRequestorConsumerTest.java | 6 +++--- .../resources/events/Context_AvroEventAlbum_EventOutCompare.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/plugins/event/carrier/restrequestor/ApexRestRequestorConsumerTest.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/plugins/event/carrier/restrequestor/ApexRestRequestorConsumerTest.java index 47f90454c..eaaf56da5 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/plugins/event/carrier/restrequestor/ApexRestRequestorConsumerTest.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/plugins/event/carrier/restrequestor/ApexRestRequestorConsumerTest.java @@ -1,7 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2018 Ericsson. All rights reserved. - * Modifications Copyright (C) 2019-2020,2024 Nordix Foundation. + * Modifications Copyright (C) 2019-2020,2024-2025 OpenInfra Foundation Europe. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -123,7 +123,7 @@ class ApexRestRequestorConsumerTest { consumerParameters.setPeeredMode(EventHandlerPeeredMode.REQUESTOR, true); rrctp.setHttpMethod(RestRequestorCarrierTechnologyParameters.HttpMethod.GET); - rrctp.setUrl("http://www.{site}.{site}.{net}"); + rrctp.setUrl("http://www.onap.onap.org"); consumerParameters.setPeerTimeout(EventHandlerPeeredMode.REQUESTOR, 2000); Properties properties = new Properties(); properties.put("site", "onap"); @@ -149,7 +149,7 @@ class ApexRestRequestorConsumerTest { consumerParameters.setPeeredMode(EventHandlerPeeredMode.REQUESTOR, true); rrctp.setHttpMethod(RestRequestorCarrierTechnologyParameters.HttpMethod.GET); - rrctp.setUrl("http://www.{site}.{net}"); + rrctp.setUrl("http://www.onap.org"); consumerParameters.setPeerTimeout(EventHandlerPeeredMode.REQUESTOR, 2000); Properties properties = new Properties(); properties.put("site", "onap"); diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/events/Context_AvroEventAlbum_EventOutCompare.json b/testsuites/integration/integration-uservice-test/src/test/resources/events/Context_AvroEventAlbum_EventOutCompare.json index 6c13b1f0e..dee91c425 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/events/Context_AvroEventAlbum_EventOutCompare.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/events/Context_AvroEventAlbum_EventOutCompare.json @@ -16,7 +16,7 @@ "AvroBoolean": true, "AvroByte": -127.0, "AvroDouble": 1.2345E67, - "AvroFloat": 1.9999999999999998E23, + "AvroFloat": 2.0E23, "AvroInteger": 1234568.0, "AvroLong": 1.234567890124E12, "AvroMap": { -- 2.16.6