mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 07:43:40 +01:00
commented out invalid test case
This commit is contained in:
@@ -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.");
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user