summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor
diff options
context:
space:
mode:
authorFrank Kimmlingen <frank.kimmlingen@telekom.de>2022-09-07 11:23:52 +0200
committerFrank Kimmlingen <frank.kimmlingen@telekom.de>2022-09-09 12:59:06 +0000
commit43496fb210dd08bd934fedf2e5e1bba4636000d1 (patch)
tree27874cf1746f7c7f02ab47c2bcaf581a440ec669 /ms/blueprintsprocessor
parent27778ac1289588a9f68e9b9408819f7bfb1c7d21 (diff)
Make UatExecutor accessible inside a CBA JUnit test
Issue-ID: CCSDK-3748 Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de> Change-Id: Icbc0a44d91fd08f2e06a12bcdf016655a2b2282d
Diffstat (limited to 'ms/blueprintsprocessor')
-rw-r--r--ms/blueprintsprocessor/application/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/uat/utils/UatExecutor.kt8
1 files changed, 4 insertions, 4 deletions
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<String, BlueprintWebClientService>()
@@ -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<String, SpyService>()
@@ -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