mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 17:19:30 +01:00
updated to speed-up the unit test
This commit is contained in:
@@ -66,6 +66,9 @@ public class RubyBundleAuditAnalyzerTest extends BaseDBTestCase {
|
|||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
|
Settings.setBoolean(Settings.KEYS.AUTO_UPDATE, false);
|
||||||
|
Settings.setBoolean(Settings.KEYS.ANALYZER_NEXUS_ENABLED, false);
|
||||||
|
Settings.setBoolean(Settings.KEYS.ANALYZER_CENTRAL_ENABLED, false);
|
||||||
analyzer = new RubyBundleAuditAnalyzer();
|
analyzer = new RubyBundleAuditAnalyzer();
|
||||||
analyzer.setFilesMatched(true);
|
analyzer.setFilesMatched(true);
|
||||||
}
|
}
|
||||||
@@ -175,12 +178,9 @@ public class RubyBundleAuditAnalyzerTest extends BaseDBTestCase {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testDependenciesPath() throws AnalysisException, DatabaseException {
|
public void testDependenciesPath() throws AnalysisException, DatabaseException {
|
||||||
|
|
||||||
final Engine engine = new Engine();
|
final Engine engine = new Engine();
|
||||||
engine.scan(BaseTest.getResourceAsFile(this,
|
engine.scan(BaseTest.getResourceAsFile(this,
|
||||||
"ruby/vulnerable/gems/rails-4.1.15/"));
|
"ruby/vulnerable/gems/rails-4.1.15/"));
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
engine.analyzeDependencies();
|
engine.analyzeDependencies();
|
||||||
} catch (NullPointerException ex) {
|
} catch (NullPointerException ex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user