From 7956606876a72d482c5928a6abb226096e38f9f6 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 28 May 2017 07:35:04 -0400 Subject: [PATCH] test case for #737 --- .../it/737-joda-time-issue/invoker.properties | 19 + .../src/it/737-joda-time-issue/pom.xml | 630 ++++++++++++++++++ .../it/737-joda-time-issue/postbuild.groovy | 31 + .../it/737-joda-time-issue/prebuild.groovy | 17 + 4 files changed, 697 insertions(+) create mode 100644 dependency-check-maven/src/it/737-joda-time-issue/invoker.properties create mode 100644 dependency-check-maven/src/it/737-joda-time-issue/pom.xml create mode 100644 dependency-check-maven/src/it/737-joda-time-issue/postbuild.groovy create mode 100644 dependency-check-maven/src/it/737-joda-time-issue/prebuild.groovy diff --git a/dependency-check-maven/src/it/737-joda-time-issue/invoker.properties b/dependency-check-maven/src/it/737-joda-time-issue/invoker.properties new file mode 100644 index 000000000..db025b28c --- /dev/null +++ b/dependency-check-maven/src/it/737-joda-time-issue/invoker.properties @@ -0,0 +1,19 @@ +# +# This file is part of dependency-check-maven. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Copyright (c) 2017 Jeremy Long. All Rights Reserved. +# + +invoker.goals = install -X ${project.groupId}:${project.artifactId}:${project.version}:check -DskipSystemScope=true -Dformat=JSON diff --git a/dependency-check-maven/src/it/737-joda-time-issue/pom.xml b/dependency-check-maven/src/it/737-joda-time-issue/pom.xml new file mode 100644 index 000000000..3b4baa359 --- /dev/null +++ b/dependency-check-maven/src/it/737-joda-time-issue/pom.xml @@ -0,0 +1,630 @@ + + + + + + + com.test + 4.0.0 + 1.0.9-SNAPSHOT + test pom parent + test-backend-app + test-backend web app + + + 1.8 + 1.8 + 1.8 + UTF-8 + @{project.version} + + **/test/app/resources/*,**/test/app/config/**/*,**/test/model/**/*,**/test/common/**/* + + ${maven.build.timestamp} + dd/MM/yyyy HH:mm:ss + + + -Xdoclint:none + + + 1.1.6 + 1.5.0.RELEASE + 8.0.41 + 3.0.1 + 4.3.6.RELEASE + 1.7.22 + 1.8.10 + 2.8.2 + 1.0.2 + 2.10.3 + + 3.5 + 1.10 + 4.1 + 1.5.1 + 1.3.2 + 2.5 + 1.5.10 + 1.1.3 + 1.16.12 + 1.1.0.Final + 1.0 + 2.23.2 + 5.2.4.Final + + + 4.12 + 1.10.19 + 1.6.6 + 3.6.1 + 1.2.5 + + + 3.0.1 + 3.5.1 + 2.6 + 2.5.3 + 1.10 + 2.10.4 + 3.0.0 + 3.0.2 + 2.7 + 1.0 + 0.7.4.201502262128 + 2.2.4 + 3.0.0 + + + + + + + + + joda-time + joda-time + 1.6 + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-jersey + + + org.springframework.boot + spring-boot-starter-tomcat + + + org.springframework.boot + spring-boot-devtools + true + + + org.springframework.boot + spring-boot-actuator + + + org.springframework + spring-context-support + + + org.springframework.boot + spring-boot-loader + + + org.springframework.boot + spring-boot-starter-security + + + + + org.apache.tomcat.embed + tomcat-embed-core + + + org.apache.tomcat.embed + tomcat-embed-el + + + org.apache.tomcat.embed + tomcat-embed-logging-juli + + + org.apache.tomcat.embed + tomcat-embed-websocket + + + + + + org.mapstruct + mapstruct-jdk8 + + + + + + commons-io + commons-io + + + commons-fileupload + commons-fileupload + + + org.apache.commons + commons-lang3 + + + + + + org.glassfish.jersey.media + jersey-media-multipart + + + + + + io.swagger + swagger-jersey2-jaxrs + + + + + + org.slf4j + slf4j-api + + + org.slf4j + jcl-over-slf4j + + + org.slf4j + log4j-over-slf4j + + + org.slf4j + jul-to-slf4j + + + + + + net.sf.ehcache + ehcache + + + + + org.glassfish + javax.json + + + + + junit + junit + + + org.mockito + mockito-all + + + org.springframework + spring-test + + + org.powermock + powermock-api-mockito + + + org.powermock + powermock-module-junit4 + + + org.springframework.boot + spring-boot-starter-test + test + + + + + javax.json + javax.json-api + + + + + + + + + com.slimpay + hapiclient + ${com.slimpay.version} + + + + + org.springframework.boot + spring-boot-starter-jersey + ${spring.boot.version} + + + org.springframework.boot + spring-boot-starter-tomcat + ${spring.boot.version} + + + org.springframework.boot + spring-boot-starter-web + ${spring.boot.version} + + + org.springframework.boot + spring-boot-devtools + ${spring.boot.version} + + + org.springframework.boot + spring-boot-actuator + ${spring.boot.version} + + + org.springframework.boot + spring-boot-loader + ${spring.boot.version} + + + org.springframework.boot + spring-boot-starter-security + ${spring.boot.version} + + + org.springframework.boot + spring-boot-starter-test + ${spring.boot.version} + test + + + + + + org.springframework + spring-core + ${spring.framework.version} + + + + org.springframework + spring-context + ${spring.framework.version} + + + + org.springframework + spring-context-support + ${spring.framework.version} + + + + org.springframework + spring-aop + ${spring.framework.version} + + + + org.springframework + spring-beans + ${spring.framework.version} + + + + org.springframework + spring-web + ${spring.framework.version} + + + + org.springframework + spring-webmvc + ${spring.framework.version} + + + + org.springframework + spring-test + ${spring.framework.version} + + + + + + org.apache.tomcat.embed + tomcat-embed-core + ${tomcat.version} + + + org.apache.tomcat.embed + tomcat-embed-el + ${tomcat.version} + + + org.apache.tomcat.embed + tomcat-embed-logging-juli + ${tomcat.version} + + + org.apache.tomcat.embed + tomcat-embed-jasper + ${tomcat.version} + + + org.apache.tomcat.embed + tomcat-embed-websocket + ${tomcat.version} + + + + + + org.aspectj + aspectjrt + ${aspectj.version} + + + + org.aspectj + aspectjweaver + ${aspectj.version} + + + + + + net.sf.ehcache + ehcache + ${ehcache.version} + + + + + + org.glassfish.jersey.media + jersey-media-multipart + ${jersey.multipart.version} + + + + + org.glassfish + javax.json + 1.0.4 + + + + + + org.apache.commons + commons-lang3 + ${commons-lang.version} + + + + org.apache.commons + commons-collections4 + ${commons-collections.version} + + + + commons-validator + commons-validator + ${commons-validator.version} + + + + commons-codec + commons-codec + ${commons-codec.version} + + + + commons-fileupload + commons-fileupload + ${commons-fileupload.version} + + + + commons-io + commons-io + ${commons-io.version} + + + + javax.servlet + javax.servlet-api + ${servlet-api.version} + provided + + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + + com.fasterxml.jackson.jaxrs + jackson-jaxrs-base + ${jackson.version} + + + + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider + ${jackson.version} + + + + io.swagger + swagger-jersey2-jaxrs + ${swagger.version} + + + + org.projectlombok + lombok + ${lombok.version} + provided + + + + org.mapstruct + mapstruct-jdk8 + ${mapstruct.version} + + + + javax.json + javax.json-api + ${javax.json.version} + + + + org.hibernate + hibernate-validator + ${org.hibernate.hibernate-validator.version} + + + + + + + org.slf4j + slf4j-api + ${slf4j.version} + + + + org.slf4j + jcl-over-slf4j + ${slf4j.version} + + + + org.slf4j + log4j-over-slf4j + ${slf4j.version} + + + + org.slf4j + jul-to-slf4j + ${slf4j.version} + + + + ch.qos.logback + logback-classic + ${logback.version} + + + + + + junit + junit + ${junit.version} + test + + + + org.mockito + mockito-all + ${mockito.version} + test + + + + org.powermock + powermock-api-mockito + ${powermock.version} + test + + + + org.powermock + powermock-module-junit4 + ${powermock.version} + test + + + + org.assertj + assertj-core + ${assertj.version} + test + + + info.cukes + cucumber-java8 + ${info.cukes.cucumber.version} + test + + + info.cukes + cucumber-spring + ${info.cukes.cucumber.version} + test + + + info.cukes + cucumber-junit + ${info.cukes.cucumber.version} + test + + + + + + + + + + + + + org.owasp + dependency-check-maven + 1.4.5 + + + + check + + + + + + + + diff --git a/dependency-check-maven/src/it/737-joda-time-issue/postbuild.groovy b/dependency-check-maven/src/it/737-joda-time-issue/postbuild.groovy new file mode 100644 index 000000000..6d52bac4e --- /dev/null +++ b/dependency-check-maven/src/it/737-joda-time-issue/postbuild.groovy @@ -0,0 +1,31 @@ +/* + * This file is part of dependency-check-maven. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Copyright (c) 2017 Jeremy Long. All Rights Reserved. + */ +/* +import org.apache.commons.io.FileUtils; +import org.apache.commons.lang.StringUtils; +import java.nio.charset.Charset; +import groovy.json.JsonSlurper; + +def slurper = new JsonSlurper() +def json = slurper.parse(new File(basedir, "target/dependency-check-report.json"), "UTF-8") + +assert json instanceof Map +assert json.dependencies instanceof List +assert json.dependencies.size()==0 +return true; +*/ diff --git a/dependency-check-maven/src/it/737-joda-time-issue/prebuild.groovy b/dependency-check-maven/src/it/737-joda-time-issue/prebuild.groovy new file mode 100644 index 000000000..9ec3a0a91 --- /dev/null +++ b/dependency-check-maven/src/it/737-joda-time-issue/prebuild.groovy @@ -0,0 +1,17 @@ +/* + * This file is part of dependency-check-maven. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Copyright (c) 2017 Jeremy Long. All Rights Reserved. + */