mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 10:01:35 +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"));
|
"ruby/vulnerable/gems/sinatra/Gemfile.lock"));
|
||||||
analyzer.analyze(result, engine);
|
analyzer.analyze(result, engine);
|
||||||
Dependency dependency = engine.getDependencies()[0];
|
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);
|
assertEquals(vulnerability.getCvssScore(), 5.0f, 0.0);
|
||||||
|
|
||||||
} catch (InitializationException | DatabaseException | AnalysisException | UpdateException e) {
|
} catch (InitializationException | DatabaseException | AnalysisException | UpdateException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user