Introduce Instrumentation
[cps.git] / integration-test / src / test / groovy / org / onap / cps / integration / TestConfig.groovy
index 33283f1..0e04d62 100644 (file)
@@ -36,6 +36,8 @@ import org.onap.cps.spi.repository.SchemaSetRepository
 import org.onap.cps.spi.repository.YangResourceRepository
 import org.onap.cps.spi.utils.SessionManager
 import org.onap.cps.utils.JsonObjectMapper
+import org.onap.cps.utils.TimedYangParser
+import org.onap.cps.yang.TimedYangTextSchemaSourceSetBuilder
 import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.context.annotation.Bean
 import org.springframework.context.annotation.Configuration
@@ -76,10 +78,6 @@ class TestConfig extends Specification{
     @Lazy
     JsonObjectMapper jsonObjectMapper
 
-    @Autowired
-    @Lazy
-    NotificationService stubbedNotificationService
-
     @Autowired
     @Lazy
     SessionManager stubbedSessionManager
@@ -113,4 +111,15 @@ class TestConfig extends Specification{
     SessionManager sessionManager() {
         return Stub(SessionManager)
     }
-}
\ No newline at end of file
+
+    @Bean
+    TimedYangParser timedYangParser() {
+        return new TimedYangParser()
+    }
+
+    @Bean
+    TimedYangTextSchemaSourceSetBuilder textSchemaSourceSetBuilder() {
+        return new TimedYangTextSchemaSourceSetBuilder()
+    }
+
+}