I know there is a Robolectric.shadowOf(Fragment) method and a ShadowFragment class, thought they aren\'t listed on the docs, but I can\'t make it w
Robolectric.shadowOf(Fragment)
ShadowFragment
I'm pretty sure you have to create a FragmentTransaction using the FragmentManager, then it will work.
FragmentTransaction
FragmentManager