mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 01:29:43 +01:00
added assertion to validate that the base flag is being processed
Former-commit-id: 0364e57af8f548d010f17f948492e9472433c675
This commit is contained in:
@@ -88,7 +88,15 @@ public class SuppressionHandlerTest {
|
|||||||
|
|
||||||
xmlReader.parse(in);
|
xmlReader.parse(in);
|
||||||
|
|
||||||
List result = handler.getSuppressionRules();
|
List<SuppressionRule> result = handler.getSuppressionRules();
|
||||||
assertTrue(result.size() > 3);
|
assertTrue(result.size() > 3);
|
||||||
|
int baseCount = 0;
|
||||||
|
for (SuppressionRule r : result) {
|
||||||
|
if (r.isBase()) {
|
||||||
|
baseCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
assertTrue(baseCount > 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user