summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/application
diff options
context:
space:
mode:
authorFrank Kimmlingen <frank.kimmlingen@telekom.de>2022-09-07 11:23:52 +0200
committerKAPIL SINGAL <ks220y@att.com>2022-09-12 13:33:12 +0000
commitea457a94cda951ff17b84b107be0b96a4537fabc (patch)
tree10f9954d1dedead04b3f41c65ec4a3102dfa612c /ms/blueprintsprocessor/application
parent964df01c19c529deca28d118b67e3465fc3998aa (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 (cherry picked from commit 43496fb210dd08bd934fedf2e5e1bba4636000d1)
Diffstat (limited to 'ms/blueprintsprocessor/application')
-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