public class Robolectric extends Object
Constructor and Description |
---|
Robolectric() |
Modifier and Type | Method and Description |
---|---|
static <T extends android.app.Activity> |
buildActivity(Class<T> activityClass) |
static <T extends android.app.Service> |
buildService(Class<T> serviceClass) |
static void |
flushBackgroundScheduler()
Execute all runnables that have been enqueues on the background scheduler.
|
static void |
flushForegroundScheduler()
Execute all runnables that have been enqueued on the foreground scheduler.
|
static Scheduler |
getBackgroundThreadScheduler()
Return the background thread scheduler.
|
static Scheduler |
getForegroundThreadScheduler()
Return the foreground thread scheduler (e.g the UI thread scheduler).
|
static ShadowsAdapter |
getShadowsAdapter() |
static void |
reset() |
static <T extends android.app.Activity> |
setupActivity(Class<T> activityClass) |
static <T extends android.app.Service> |
setupService(Class<T> serviceClass) |
public static void reset()
public static ShadowsAdapter getShadowsAdapter()
public static <T extends android.app.Service> ServiceController<T> buildService(Class<T> serviceClass)
public static <T extends android.app.Service> T setupService(Class<T> serviceClass)
public static <T extends android.app.Activity> ActivityController<T> buildActivity(Class<T> activityClass)
public static <T extends android.app.Activity> T setupActivity(Class<T> activityClass)
public static Scheduler getForegroundThreadScheduler()
public static void flushForegroundScheduler()
public static Scheduler getBackgroundThreadScheduler()
public static void flushBackgroundScheduler()
Copyright © 2015. All rights reserved.