commented out invalid test case

This commit is contained in:
Jeremy Long
2017-08-31 06:03:49 -04:00
parent ff7ebf405c
commit 190fa55ace

View File

@@ -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.");
// }
}
/**