mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-06 08:00:18 +01:00
fixed test case
This commit is contained in:
@@ -158,7 +158,7 @@ public class RubyBundleAuditAnalyzerIT extends BaseDBTestCase {
|
||||
"ruby/vulnerable/gems/sinatra/Gemfile.lock"));
|
||||
analyzer.analyze(result, engine);
|
||||
Dependency dependency = engine.getDependencies()[0];
|
||||
Vulnerability vulnerability = ((SortedSet<Vulnerability>)dependency.getVulnerabilities(true)).first();
|
||||
Vulnerability vulnerability = dependency.getVulnerabilities(true).iterator().next();
|
||||
assertEquals(vulnerability.getCvssScore(), 5.0f, 0.0);
|
||||
|
||||
} catch (InitializationException | DatabaseException | AnalysisException | UpdateException e) {
|
||||
|
||||
Reference in New Issue
Block a user