Class SupportFragmentController<F extends android.support.v4.app.Fragment>

java.lang.Object
org.robolectric.android.controller.ComponentController<SupportFragmentController<F>,​F>
org.robolectric.shadows.support.v4.SupportFragmentController<F>
Type Parameters:
F - a class of the fragment which is under control by this class.

public class SupportFragmentController<F extends android.support.v4.app.Fragment>
extends ComponentController<SupportFragmentController<F>,​F>
FragmentController provides low-level APIs to control fragment's lifecycle.

Using FragmentController directly from your tests is strongly discouraged. You have to call all the lifecycle callback methods (create, start, ...) in the same manner as the Android framework by yourself otherwise you'll see fidelity issues. Consider using androidx.fragment.app.testing.FragmentScenario instead, which provides higher-level, streamlined APIs to control the lifecycle and it works with instrumentation tests too.