From 4c9246c82b12a7b9e0f9ac0230abfdb369ce9ab1 Mon Sep 17 00:00:00 2001 From: Frank Kimmlingen Date: Tue, 7 Mar 2023 16:36:48 +0100 Subject: Enable JUnit tests and porting to java 17 JUnit tests are no more executed: spring-boot-starter-test does not execute any junit4 tests by default Fix enable tests and adopts the tests moslty to java 17 runtime Issue-ID: CCSDK-3859 Signed-off-by: Frank Kimmlingen Signed-off-by: Lukasz Rajewski Change-Id: I02a8d25350ca62262bfc6e07c2865cd8d7b4e6b2 --- .../cds/blueprintsprocessor/core/cluster/HazelcastClusterService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ms/blueprintsprocessor/modules/commons/processor-core') diff --git a/ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/cluster/HazelcastClusterService.kt b/ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/cluster/HazelcastClusterService.kt index fb9056776..870e0ed64 100644 --- a/ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/cluster/HazelcastClusterService.kt +++ b/ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/cluster/HazelcastClusterService.kt @@ -180,7 +180,7 @@ open class HazelcastClusterService(private val applicationEventPublisher: Applic } /** Return interface may change and it will be included in BluePrintClusterService */ - @UseExperimental + @OptIn suspend fun clusterScheduler(name: String): IScheduledExecutorService { check(::hazelcast.isInitialized) { "failed to start and join cluster" } return hazelcast.getScheduledExecutorService(name) -- cgit 1.2.3-korg