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 using androidx.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 using androidx.fragment.app.testing.FragmentScenario#launch(Class, Bundle, Int, FragmentFactory).
    static void startVisibleFragment​(android.support.v4.app.Fragment fragment)
    Deprecated.
    Start fragments using androidx.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 using androidx.fragment.app.testing.FragmentScenario#launchInContainer(Class, Bundle, Int, FragmentFactory).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • startFragment

      @Deprecated public static void startFragment​(android.support.v4.app.Fragment fragment)
      Deprecated.
      Start fragments using androidx.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 using androidx.fragment.app.testing.FragmentScenario#launch(Class, Bundle, Int, FragmentFactory).
      Starts fragment hosted by the fragmentActivityClass.
    • startVisibleFragment

      @Deprecated public static void startVisibleFragment​(android.support.v4.app.Fragment fragment)
      Deprecated.
      Start fragments using androidx.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 using androidx.fragment.app.testing.FragmentScenario#launchInContainer(Class, Bundle, Int, FragmentFactory).
      Starts fragment hosted by the fragmentActivityClass with visible container for testing UI.