// Path: src/test/java/com/github/havarunner/TestHelper.java
// public static List<Description> runAndRecordIgnores(HavaRunner havaRunner) {
//     final List<Description> ignores = Collections.synchronizedList(Lists.<Description>newArrayList());
//     RunNotifier runNotifier = new RunNotifier() {
//         @Override
//         public void fireTestIgnored(Description description) {
//             ignores.add(description);
//         }
//     };
//     run(havaRunner, runNotifier);
//     return ignores;
// }


import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.Description;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.model.InitializationError;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import static com.github.havarunner.TestHelper.runAndRecordIgnores;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
package com.github.havarunner;




public class IgnoredTest {
    static boolean ignoredTestIsRun;
    static boolean testInIgnoredCLassIsRun;

    @Test
    public void it_records_ignored_tests_properly() throws InitializationError {
        HavaRunner havaRunner = new HavaRunner(ContainingIgnoredTest.class);
        final List<Description> expectedIgnoration = runAndRecordIgnores(havaRunner);
        assertEquals("this_test_is_ignored", expectedIgnoration.get(0).getMethodName());
        assertFalse(ignoredTestIsRun);
    }

    @Test
    public void it_records_ignored_classes_properly() throws InitializationError {
        HavaRunner havaRunner = new HavaRunner(IgnoredClass.class);
// Path: src/test/java/com/github/havarunner/TestHelper.java
// public static List<Description> runAndRecordIgnores(HavaRunner havaRunner) {
//     final List<Description> ignores = Collections.synchronizedList(Lists.<Description>newArrayList());
//     RunNotifier runNotifier = new RunNotifier() {
//         @Override
//         public void fireTestIgnored(Description description) {
//             ignores.add(description);
//         }
//     };
//     run(havaRunner, runNotifier);
//     return ignores;
// }


// Path: src/test/java/com/github/havarunner/IgnoredTest.java
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.Description;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.model.InitializationError;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import static com.github.havarunner.TestHelper.runAndRecordIgnores;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

package com.github.havarunner;




public class IgnoredTest {
    static boolean ignoredTestIsRun;
    static boolean testInIgnoredCLassIsRun;

    @Test
    public void it_records_ignored_tests_properly() throws InitializationError {
        HavaRunner havaRunner = new HavaRunner(ContainingIgnoredTest.class);
        final List<Description> expectedIgnoration = runAndRecordIgnores(havaRunner);
        assertEquals("this_test_is_ignored", expectedIgnoration.get(0).getMethodName());
        assertFalse(ignoredTestIsRun);
    }

    @Test
    public void it_records_ignored_classes_properly() throws InitializationError {
        HavaRunner havaRunner = new HavaRunner(IgnoredClass.class);
        final List<Description> expectedIgnoration = runAndRecordIgnores(havaRunner);