Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Jira
serverONAP Jira
columnIdsissuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-950

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


  1. Created new package(s) for synchronization code
    1. org.onap.cps.ncmp.api.impl.sync.model
    2. org.onap.cps.ncmp.api.impl.sync.data
  1. Break down syncAndCreateSchemaSet method into separate / multiple methods
    1. syncAndCreateSchemaSet(yangModelCmHandle);
    2. createAnchor(yangModelCmHandle);


Currently test is in : org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplModelSyncSpec.groovy