Class SupportFragmentTestUtil
java.lang.Object
org.robolectric.shadows.support.v4.SupportFragmentTestUtil
@Deprecated public class SupportFragmentTestUtil extends Object
Deprecated.
Android encourages developers to use androidx fragments, to test these use
androidx.fragment.app.testing.FragmentScenario
.Utilities for creating Fragments for testing.
-
Constructor Summary
Constructors Constructor Description SupportFragmentTestUtil()
Deprecated. -
Method Summary
Modifier and Type Method Description static void
startFragment(android.support.v4.app.Fragment fragment)
Deprecated.Start fragments usingandroidx.fragment.app.testing.FragmentScenario#launch(Class, Bundle, FragmentFactory)
.static void
startFragment(android.support.v4.app.Fragment fragment, Class<? extends android.support.v4.app.FragmentActivity> fragmentActivityClass)
Deprecated.Start fragments usingandroidx.fragment.app.testing.FragmentScenario#launch(Class, Bundle, Int, FragmentFactory)
.static void
startVisibleFragment(android.support.v4.app.Fragment fragment)
Deprecated.Start fragments usingandroidx.fragment.app.testing.FragmentScenario#launchInContainer(Class, Bundle, FragmentFactory)
.static void
startVisibleFragment(android.support.v4.app.Fragment fragment, Class<? extends android.support.v4.app.FragmentActivity> fragmentActivityClass, int containerViewId)
Deprecated.Start fragments usingandroidx.fragment.app.testing.FragmentScenario#launchInContainer(Class, Bundle, Int, FragmentFactory)
.
-
Constructor Details
-
SupportFragmentTestUtil
public SupportFragmentTestUtil()Deprecated.
-
-
Method Details
-
startFragment
Deprecated.Start fragments usingandroidx.fragment.app.testing.FragmentScenario#launch(Class, Bundle, FragmentFactory)
.Starts fragment. -
startFragment
@Deprecated public static void startFragment(android.support.v4.app.Fragment fragment, Class<? extends android.support.v4.app.FragmentActivity> fragmentActivityClass)Deprecated.Start fragments usingandroidx.fragment.app.testing.FragmentScenario#launch(Class, Bundle, Int, FragmentFactory)
.Starts fragment hosted by thefragmentActivityClass
. -
startVisibleFragment
Deprecated.Start fragments usingandroidx.fragment.app.testing.FragmentScenario#launchInContainer(Class, Bundle, FragmentFactory)
.Starts fragment with visible container for testing UI. -
startVisibleFragment
@Deprecated public static void startVisibleFragment(android.support.v4.app.Fragment fragment, Class<? extends android.support.v4.app.FragmentActivity> fragmentActivityClass, int containerViewId)Deprecated.Start fragments usingandroidx.fragment.app.testing.FragmentScenario#launchInContainer(Class, Bundle, Int, FragmentFactory)
.Starts fragment hosted by thefragmentActivityClass
with visible container for testing UI.
-