Refactor existing model sync code into separate package and classes so it can be used by both sync(current) service and new watchdog process.
Keep all sync method(s) in a separate class so that it can be tested easily.
Method name that need to be refactored > Class name : org.onap.cps.ncmp.api.impl.NetworkCmProxyDataServiceImpl > Method name : syncAndCreateSchemaSet
- Created new package(s) for synchronization code
- org.onap.cps.ncmp.api.impl.sync.model
- org.onap.cps.ncmp.api.impl.sync.data
- Break down syncAndCreateSchemaSet method into separate / multiple methods
- syncAndCreateSchemaSet(yangModelCmHandle);
- createAnchor(yangModelCmHandle);
Currently test is in : org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplModelSyncSpec.groovy