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 --- .../ccsdk/cds/blueprintsprocessor/rest/service/RestLoggerService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ms/blueprintsprocessor/modules/commons/rest-lib') diff --git a/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestLoggerService.kt b/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestLoggerService.kt index 744236685..f5552a691 100644 --- a/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestLoggerService.kt +++ b/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestLoggerService.kt @@ -150,7 +150,7 @@ suspend fun mdcWebCoroutineScope( replaceWith = ReplaceWith("mdcWebCoroutineScope") ) /** Used in Rest controller API methods to populate MDC context to nested coroutines from reactor web filter context. */ -@UseExperimental(InternalCoroutinesApi::class) +@OptIn(InternalCoroutinesApi::class) fun monoMdc( context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T? -- cgit 1.2.3-korg