<commit_before>package de.nenick.espressomacchiato.actions;

import android.app.Activity;
import android.support.test.InstrumentationRegistry;

import org.junit.Test;

import de.nenick.espressomacchiato.test.views.BaseActivity;
import de.nenick.espressomacchiato.testbase.EspressoTestCase;

public class OrientationChangeActionTest extends EspressoTestCase<BaseActivity> {

    private OrientationChangeAction orientationChangeAction = OrientationChangeAction.orientationLandscape();
    private Activity activityWithUnknownPackage;

    @Test
    public void testPerformFailure() {
        exception.expect(IllegalStateException.class);
        InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
            @Override
            public void run() {
                activityWithUnknownPackage = new Activity() {
                    @Override
                    public String getPackageName() {
                        return "unknown package";
                    }
                };
            }
        });

        orientationChangeAction.hasActivityFixedOrientation(activityWithUnknownPackage);
    }
}<commit_msg>try if test has side effects for following tests<commit_after>package de.nenick.espressomacchiato.actions;

import android.app.Activity;
import android.support.test.InstrumentationRegistry;

import org.junit.Ignore;
import org.junit.Test;

import de.nenick.espressomacchiato.test.views.BaseActivity;
import de.nenick.espressomacchiato.testbase.EspressoTestCase;

@Ignore
public class OrientationChangeActionTest extends EspressoTestCase<BaseActivity> {

    private OrientationChangeAction orientationChangeAction = OrientationChangeAction.orientationLandscape();
    private Activity activityWithUnknownPackage;

    @Test
    public void testPerformFailure() {
        exception.expect(IllegalStateException.class);
        InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
            @Override
            public void run() {
                activityWithUnknownPackage = new Activity() {
                    @Override
                    public String getPackageName() {
                        return "unknown package";
                    }
                };
            }
        });

        orientationChangeAction.hasActivityFixedOrientation(activityWithUnknownPackage);
    }
}
{'fraction_non_alphanumeric': 0.07112616426756986, 'fraction_numerical': 0.0, 'mean_word_length': 2.912251655629139, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '3115317', 'n_tokens_mistral': 590, 'n_tokens_neox': 560, 'n_words': 103}