mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-11 14:30:35 +01:00
updated test case for new report format
This commit is contained in:
@@ -25,6 +25,6 @@ def slurper = new JsonSlurper()
|
||||
def json = slurper.parse(new File(basedir, "target/dependency-check-report.json"), "UTF-8")
|
||||
|
||||
assert json instanceof Map
|
||||
assert json.analysis.dependencies instanceof List
|
||||
assert json.analysis.dependencies.size()==1
|
||||
assert json.dependencies instanceof List
|
||||
assert json.dependencies.size()==1
|
||||
return true;
|
||||
|
||||
@@ -25,6 +25,6 @@ def slurper = new JsonSlurper()
|
||||
def json = slurper.parse(new File(basedir, "target/dependency-check-report.json"), "UTF-8")
|
||||
|
||||
assert json instanceof Map
|
||||
assert json.analysis.dependencies instanceof List
|
||||
assert json.analysis.dependencies.size()==0
|
||||
assert json.dependencies instanceof List
|
||||
assert json.dependencies.size()==0
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user