<commit_before>package edu.umd.cs.findbugs.ba;

import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assume.assumeThat;

import org.junit.Test;

import edu.umd.cs.findbugs.AbstractIntegrationTest;

/**
 * @see <a href="https://github.com/spotbugs/spotbugs/issues/408">#408</a>
 * @since 3.1
 */
public class Issue408Test extends AbstractIntegrationTest {

    @Test
    public void test() {
        assumeThat(System.getProperty("java.specification.version"), is("9"));

        performAnalysis("../java9/module-info.class");
        assertThat(getBugCollection().getCollection(), is(empty()));
    }

}
<commit_msg>refs #474: fix broken unit test<commit_after>package edu.umd.cs.findbugs.ba;

import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.Matchers.is;
import static org.junit.Assume.assumeThat;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

import edu.umd.cs.findbugs.AbstractIntegrationTest;
import edu.umd.cs.findbugs.NoClassesFoundToAnalyzeException;

/**
 * @see <a href="https://github.com/spotbugs/spotbugs/issues/408">#408</a>
 * @since 3.1
 */
public class Issue408Test extends AbstractIntegrationTest {
    @Rule
    public ExpectedException expected = ExpectedException.none();

    @Test
    public void test() {
        assumeThat(System.getProperty("java.specification.version"), is("9"));

        expected.expect(AssertionError.class);
        expected.expectMessage("Analysis failed with exception");
        expected.expectCause(is(instanceOf(NoClassesFoundToAnalyzeException.class)));
        performAnalysis("../java9/module-info.class");
    }

}

{'fraction_non_alphanumeric': 0.13375430539609645, 'fraction_numerical': 0.016647531572904706, 'mean_word_length': 4.413043478260869, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4154919', 'n_tokens_mistral': 571, 'n_tokens_neox': 541, 'n_words': 91}