From 190fa55aceef59001249d57ebdd200dfada46905 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Thu, 31 Aug 2017 06:03:49 -0400 Subject: [PATCH] commented out invalid test case --- .../analyzer/RubyBundleAuditAnalyzerTest.java | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/RubyBundleAuditAnalyzerTest.java b/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/RubyBundleAuditAnalyzerTest.java index f8801f7aa..b6372c9e7 100644 --- a/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/RubyBundleAuditAnalyzerTest.java +++ b/dependency-check-core/src/test/java/org/owasp/dependencycheck/analyzer/RubyBundleAuditAnalyzerTest.java @@ -167,19 +167,21 @@ public class RubyBundleAuditAnalyzerTest extends BaseDBTestCase { */ @Test public void testMissingBundleAudit() throws AnalysisException, DatabaseException { + //TODO - this test is invalid as phantom bundle audit may not exist - but if bundle-audit + // is still on the path then initialization works and the bundle-audit on the path works. //set a non-exist bundle-audit - getSettings().setString(Settings.KEYS.ANALYZER_BUNDLE_AUDIT_PATH, "phantom-bundle-audit"); - analyzer.initializeSettings(getSettings()); - try { - //initialize should fail. - analyzer.initialize(null); - } catch (Exception e) { - //expected, so ignore. - assertNotNull(e); - } finally { - assertThat(analyzer.isEnabled(), is(false)); - LOGGER.info("phantom-bundle-audit is not available. Ruby Bundle Audit Analyzer is disabled as expected."); - } +// getSettings().setString(Settings.KEYS.ANALYZER_BUNDLE_AUDIT_PATH, "phantom-bundle-audit"); +// analyzer.initializeSettings(getSettings()); +// try { +// //initialize should fail. +// analyzer.initialize(null); +// } catch (Exception e) { +// //expected, so ignore. +// assertNotNull(e); +// } finally { +// assertThat(analyzer.isEnabled(), is(false)); +// LOGGER.info("phantom-bundle-audit is not available. Ruby Bundle Audit Analyzer is disabled as expected."); +// } } /**