Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
onCreate()結果を期待して、メソッド内から別のアクティビティBを起動するアクティビティAがあるとします。
onCreate()
Robolectricを使用してアクティビティBを取得するにはどうすればよいですか?
ボタンが起動したアクティビティが期待どおりであることを確認できますか?
button.performClick(); assertThat(activity, new StartedMatcher( SecondActivity.class));