From ea457a94cda951ff17b84b107be0b96a4537fabc Mon Sep 17 00:00:00 2001 From: Frank Kimmlingen Date: Wed, 7 Sep 2022 11:23:52 +0200 Subject: Make UatExecutor accessible inside a CBA JUnit test Issue-ID: CCSDK-3748 Signed-off-by: Frank Kimmlingen Change-Id: Icbc0a44d91fd08f2e06a12bcdf016655a2b2282d (cherry picked from commit 43496fb210dd08bd934fedf2e5e1bba4636000d1) --- .../onap/ccsdk/cds/blueprintsprocessor/uat/utils/UatExecutor.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ms/blueprintsprocessor/application') diff --git a/ms/blueprintsprocessor/application/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/uat/utils/UatExecutor.kt b/ms/blueprintsprocessor/application/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/uat/utils/UatExecutor.kt index 5adc816cc..b97dbf7bb 100644 --- a/ms/blueprintsprocessor/application/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/uat/utils/UatExecutor.kt +++ b/ms/blueprintsprocessor/application/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/uat/utils/UatExecutor.kt @@ -71,7 +71,7 @@ import java.util.concurrent.ConcurrentHashMap * @author Eliezio Oliveira */ @Component -class UatExecutor( +open class UatExecutor( private val environment: ConfigurableEnvironment, private val restClientFactory: BluePrintRestLibPropertyService, private val mapper: ObjectMapper @@ -298,7 +298,7 @@ class UatExecutor( return "Basic " + Base64Utils.encodeToString("$username:$plainPassword".toByteArray()) } - private class MockPreInterceptor : BluePrintRestLibPropertyService.PreInterceptor { + open class MockPreInterceptor : BluePrintRestLibPropertyService.PreInterceptor { private val mocks = ConcurrentHashMap() @@ -314,7 +314,7 @@ class UatExecutor( } } - private class SpyPostInterceptor(private val mapper: ObjectMapper) : BluePrintRestLibPropertyService.PostInterceptor { + open class SpyPostInterceptor(private val mapper: ObjectMapper) : BluePrintRestLibPropertyService.PostInterceptor { private val spies = ConcurrentHashMap() @@ -336,7 +336,7 @@ class UatExecutor( spies.values.toList() } - private class SpyService( + open class SpyService( private val mapper: ObjectMapper, val selector: String, private val realService: BlueprintWebClientService -- cgit 1.2.3-korg