Merge "Temp Table Creation improvements"
[cps.git] / cps-path-parser / src / test / groovy / org / onap / cps / cpspath / parser / CpsPathUtilSpec.groovy
index f6a768a..36e8912 100644 (file)
@@ -90,16 +90,16 @@ class CpsPathUtilSpec extends Specification {
 
     def 'CPS Path Processing Performance Test.'() {
         when: '200,000 paths are processed'
-            def setupStopWatch = new StopWatch()
-            setupStopWatch.start()
+            def stopWatch = new StopWatch()
+            stopWatch.start()
             (1..100000).each {
                 CpsPathUtil.getNormalizedXpath('/long/path/to/see/if/it/adds/paring/time/significantly/parent/child[@common-leaf-name="123"]')
                 CpsPathUtil.getNormalizedXpath('//child[@other-leaf=1]/leaf-name[text()="search"]/ancestor::parent')
             }
-            setupStopWatch.stop()
+            stopWatch.stop()
         then: 'it takes less then 10,000 milliseconds'
             // In CI this actually takes about 3-5 sec  which  is approx. 50+ parser executions per millisecond!
-            assert setupStopWatch.getTotalTimeMillis() < 10000
+            assert stopWatch.getTotalTimeMillis() < 10000
     }
 
 }