@MediumTestpublicvoid testPreconditions() {
//Start the activity under test in isolation, without values for savedInstanceState and//lastNonConfigurationInstance
startActivity(mLaunchIntent, null, null);
final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_button);
assertNotNull("mLaunchActivity is null", getActivity());
assertNotNull("mLaunchNextButton is null", launchNextButton);
}
テストのログを見てみると次のようなエラーメッセージが書いてあった。
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.