From e090d40b5618ebc39653ad9ab78f04a8f330a3e3 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 25 Aug 2024 07:09:36 -0400 Subject: [PATCH] chore: additional tests (#6918) --- .../owasp/dependencycheck/data/nvdcve/CveItemOperatorTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/org/owasp/dependencycheck/data/nvdcve/CveItemOperatorTest.java b/core/src/test/java/org/owasp/dependencycheck/data/nvdcve/CveItemOperatorTest.java index 480e9ad06de..41cdd98fbdb 100644 --- a/core/src/test/java/org/owasp/dependencycheck/data/nvdcve/CveItemOperatorTest.java +++ b/core/src/test/java/org/owasp/dependencycheck/data/nvdcve/CveItemOperatorTest.java @@ -59,7 +59,6 @@ public void testTestCveCpeStartWithFilter() { List configurations = new ArrayList<>(); List matches = new ArrayList<>(); matches.add(null); - Node first = new Node(Node.Operator.OR, null, matches); List cpeMatch = new ArrayList<>(); //cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* @@ -67,10 +66,12 @@ public void testTestCveCpeStartWithFilter() { "versionStartIncluding", "versionEndExcluding", "versionEndIncluding"); cpeMatch.add(match); Node second = new Node(Node.Operator.OR, Boolean.FALSE, cpeMatch); + Node third = new Node(Node.Operator.OR, null, null); List nodes = new ArrayList<>(); nodes.add(null); nodes.add(first); nodes.add(second); + nodes.add(third); Config c = new Config(Config.Operator.AND, null, nodes); configurations.add(c);