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 @Test
public void testMissingBundleAudit() throws AnalysisException, DatabaseException { 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 //set a non-exist bundle-audit
getSettings().setString(Settings.KEYS.ANALYZER_BUNDLE_AUDIT_PATH, "phantom-bundle-audit"); // getSettings().setString(Settings.KEYS.ANALYZER_BUNDLE_AUDIT_PATH, "phantom-bundle-audit");
analyzer.initializeSettings(getSettings()); // analyzer.initializeSettings(getSettings());
try { // try {
//initialize should fail. // //initialize should fail.
analyzer.initialize(null); // analyzer.initialize(null);
} catch (Exception e) { // } catch (Exception e) {
//expected, so ignore. // //expected, so ignore.
assertNotNull(e); // assertNotNull(e);
} finally { // } finally {
assertThat(analyzer.isEnabled(), is(false)); // assertThat(analyzer.isEnabled(), is(false));
LOGGER.info("phantom-bundle-audit is not available. Ruby Bundle Audit Analyzer is disabled as expected."); // LOGGER.info("phantom-bundle-audit is not available. Ruby Bundle Audit Analyzer is disabled as expected.");
} // }
} }
/** /**