when: 'get parent is executed with all descendants'
def readStopWatch = new StopWatch()
readStopWatch.start()
def result = objectUnderTest.getDataNode('PERF-DATASPACE', 'PERF-ANCHOR', PERF_TEST_PARENT, INCLUDE_ALL_DESCENDANTS)
readStopWatch.stop()
def readDurationInMillis = readStopWatch.getTime()
when: 'get parent is executed with all descendants'
def readStopWatch = new StopWatch()
readStopWatch.start()
def result = objectUnderTest.getDataNode('PERF-DATASPACE', 'PERF-ANCHOR', PERF_TEST_PARENT, INCLUDE_ALL_DESCENDANTS)
readStopWatch.stop()
def readDurationInMillis = readStopWatch.getTime()
and: 'data node is returned with all the descendants populated'
assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES
when: 'get root is executed with all descendants'
and: 'data node is returned with all the descendants populated'
assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES
when: 'get root is executed with all descendants'
result = objectUnderTest.getDataNode('PERF-DATASPACE', 'PERF-ANCHOR', '', INCLUDE_ALL_DESCENDANTS)
readStopWatch.stop()
readDurationInMillis = readStopWatch.getTime()
result = objectUnderTest.getDataNode('PERF-DATASPACE', 'PERF-ANCHOR', '', INCLUDE_ALL_DESCENDANTS)
readStopWatch.stop()
readDurationInMillis = readStopWatch.getTime()
and: 'data node is returned with all the descendants populated'
assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES
when: 'query is executed with all descendants'
and: 'data node is returned with all the descendants populated'
assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES
when: 'query is executed with all descendants'
result = objectUnderTest.queryDataNodes('PERF-DATASPACE', 'PERF-ANCHOR', '//perf-parent-1', INCLUDE_ALL_DESCENDANTS)
readStopWatch.stop()
readDurationInMillis = readStopWatch.getTime()
result = objectUnderTest.queryDataNodes('PERF-DATASPACE', 'PERF-ANCHOR', '//perf-parent-1', INCLUDE_ALL_DESCENDANTS)
readStopWatch.stop()
readDurationInMillis = readStopWatch.getTime()
and: 'data node is returned with all the descendants populated'
assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES
}
and: 'data node is returned with all the descendants populated'
assert countDataNodes(result) == EXPECTED_NUMBER_OF_NODES
}