- 1 * mockDataStoreService.storeDataNode(dataspaceName, anchorName,\r
- {dataNode -> dataNode.xpath == '/ran-coverage-area' && dataNode.childDataNodes.size() == 4})\r
+ 1 * mockDataStoreService.storeDataNode('someDataspace', 'someAnchor', _) >>\r
+ { args -> dataNodeStored = args[2]}\r
+ def child = dataNodeStored.childDataNodes[0]\r
+ assert child.childDataNodes.size() == 1\r
+ and: 'list of Tracking Area for a Coverage Area are stored with correct xpath and child nodes '\r
+ def listOfTAForCoverageArea = child.childDataNodes[0]\r
+ listOfTAForCoverageArea.xpath == '/ran-coverage-area/pLMNIdList[@mcc=\'310\' and @mnc=\'410\']/' +\r
+ 'coverage-area[@coverageArea=\'Washington\']'\r
+ listOfTAForCoverageArea.childDataNodes[0].leaves.get('nRTAC') == 234\r
+ and: 'list of cells in a tracking area are stored with correct xpath and child nodes '\r
+ def listOfCellsInTrackingArea = listOfTAForCoverageArea.childDataNodes[0]\r
+ listOfCellsInTrackingArea.xpath == '/ran-coverage-area/pLMNIdList[@mcc=\'310\' and @mnc=\'410\']/' +\r
+ 'coverage-area[@coverageArea=\'Washington\']/coverageAreaTAList[@nRTAC=\'234\']'\r
+ listOfCellsInTrackingArea.childDataNodes[0].leaves.get('cellLocalId') == 15709\r