Migrate "ms/controllerblueprints" from ccsdk/apps
[ccsdk/cds.git] / ms / controllerblueprints / modules / blueprint-validation / src / test / kotlin / org / onap / ccsdk / cds / controllerblueprints / validation / MockBluePrintTypeValidatorService.kt
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  * Modifications Copyright © 2018 IBM.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 package org.onap.ccsdk.cds.controllerblueprints.validation
19
20 import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.*
21
22 class MockBluePrintTypeValidatorService : BluePrintTypeValidatorService {
23
24     override fun <T : BluePrintValidator<*>> bluePrintValidator(referenceName: String, classType: Class<T>): T? {
25         return null
26     }
27
28     override fun <T : BluePrintValidator<*>> bluePrintValidators(referenceNamePrefix: String, classType: Class<T>): List<T>? {
29        return null
30     }
31
32     override fun <T : BluePrintValidator<*>> bluePrintValidators(classType: Class<T>): List<T>? {
33        return null
34     }
35
36     override fun getServiceTemplateValidators(): List<BluePrintServiceTemplateValidator> {
37         return listOf(BluePrintServiceTemplateValidatorImpl(this))
38     }
39
40     override fun getDataTypeValidators(): List<BluePrintDataTypeValidator> {
41         return listOf(BluePrintDataTypeValidatorImpl(this))
42     }
43
44     override fun getArtifactTypeValidators(): List<BluePrintArtifactTypeValidator> {
45         return listOf(BluePrintArtifactTypeValidatorImpl(this))
46     }
47
48     override fun getArtifactDefinitionsValidators(): List<BluePrintArtifactDefinitionValidator> {
49         return listOf(BluePrintArtifactDefinitionValidatorImpl(this))
50     }
51
52     override fun getNodeTypeValidators(): List<BluePrintNodeTypeValidator> {
53         return listOf(BluePrintNodeTypeValidatorImpl(this))
54     }
55
56     override fun getTopologyTemplateValidators(): List<BluePrintTopologyTemplateValidator> {
57         return listOf(BluePrintTopologyTemplateValidatorImpl(this))
58     }
59
60     override fun getNodeTemplateValidators(): List<BluePrintNodeTemplateValidator> {
61         return listOf(BluePrintNodeTemplateValidatorImpl(this))
62     }
63
64     override fun getWorkflowValidators(): List<BluePrintWorkflowValidator> {
65         return listOf(BluePrintWorkflowValidatorImpl(this))
66     }
67
68     override fun getPropertyDefinitionValidators(): List<BluePrintPropertyDefinitionValidator> {
69         return listOf(BluePrintPropertyDefinitionValidatorImpl(this))
70     }
71
72     override fun getAttributeDefinitionValidators(): List<BluePrintAttributeDefinitionValidator> {
73         return listOf(BluePrintAttributeDefinitionValidatorImpl(this))
74     }
75 }