package org.robolectric.util;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.R;
import org.robolectric.RobolectricTestRunner;

import static org.hamcrest.core.IsNull.notNullValue;
import static org.junit.Assert.assertThat;

@RunWith(RobolectricTestRunner.class)
public class FragmentTestUtilTest {
    private LoginFragment fragment;

    @Before
    public void setUp() {
        fragment = new LoginFragment();
        FragmentTestUtil.startFragment(fragment);

        assertThat(fragment.getActivity(), notNullValue());
        assertThat(fragment.getView(), notNullValue());
    }

    @Test
    public void tacos_should_be_found() {
        assertThat(fragment.getView().findViewById(R.id.tacos), notNullValue());
    }
}

class LoginFragment extends Fragment {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_contents, container, false);
    }
}

@@ -313,27 +313,16 @@
 lectric.
-Robolectric
 TestRunn
@@ -323,16 +323,17 @@
 stRunner
+s
 ;%0A%0Aimpor
@@ -437,29 +437,32 @@
 ith(
-RobolectricTestRunner
+TestRunners.WithDefaults
 .cla

fix FileNotFoundException(AndroidManifest.xml)