Created
February 7, 2012 15:00
-
-
Save leviwilson/1760101 to your computer and use it in GitHub Desktop.
ABS Issue - FragmentActivity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AbsFragmentActivity extends FragmentActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
ActionBar actionBar = getSupportActionBar(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AbsFragmentActivityTest extends ActivityUnitTestCase<AbsFragmentActivity> { | |
public AbsFragmentActivityTest() { | |
super(AbsFragmentActivity.class); | |
} | |
public testThatActionBarCanBeTested() { | |
startActivity(new Intent(), null, null); | |
assertNotNull(getActivity().getSupportActionBar()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment