summaryrefslogtreecommitdiffstats
path: root/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy')
-rw-r--r--cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy15
1 files changed, 0 insertions, 15 deletions
diff --git a/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy b/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy
index 36e89127c..d62f337b7 100644
--- a/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy
+++ b/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy
@@ -20,7 +20,6 @@
package org.onap.cps.cpspath.parser
-import org.springframework.util.StopWatch
import spock.lang.Specification
class CpsPathUtilSpec extends Specification {
@@ -88,18 +87,4 @@ class CpsPathUtilSpec extends Specification {
thrown(PathParsingException)
}
- def 'CPS Path Processing Performance Test.'() {
- when: '200,000 paths are processed'
- 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')
- }
- 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 stopWatch.getTotalTimeMillis() < 10000
- }
-
}