CPS Validator Changes
[cps.git] / cps-ncmp-service / src / test / groovy / org / onap / cps / ncmp / api / utils / DmiServiceUrlBuilderSpec.groovy
index 2d99397..09f4550 100644 (file)
  *  limitations under the License.
  *
  *  SPDX-License-Identifier: Apache-2.0
- * ============LICENSE_END=========================================================
+ *  ============LICENSE_END=========================================================
  */
 
 package org.onap.cps.ncmp.api.utils
 
+import org.onap.cps.spi.utils.CpsValidator
 
 import static org.onap.cps.ncmp.api.impl.operations.DmiOperations.DataStoreEnum.PASSTHROUGH_RUNNING
 
@@ -38,7 +39,9 @@ class DmiServiceUrlBuilderSpec extends Specification {
 
     NcmpConfiguration.DmiProperties dmiProperties = new NcmpConfiguration.DmiProperties()
 
-    def objectUnderTest = new DmiServiceUrlBuilder(dmiProperties)
+    def mockCpsValidator = Mock(CpsValidator)
+
+    def objectUnderTest = new DmiServiceUrlBuilder(dmiProperties, mockCpsValidator)
 
     def 'Create the dmi service url with #scenario.'() {
         given: 'uri variables'