pivotal/robolectric — pull request #362 by jonreeve (2012-11-14 17:02:49+00:00)
Title: Setter and test for setting actvity parent on ShadowActivity

Needed to test behaviour of an activity normally within a TabActivity, which involved mocking its parent. Can't see why you shouldn't be able to set it on the shadow. It has a field for it but there was no way it could be set to anything, so would always be null.

Added a setter and a test that the Activity will then return what you set on the shadow.