IntentSubject

public final class IntentSubject


Subject for making assertions about Intents.

Summary

Public constructors

Public methods

static IntentSubject
assertThat(Intent intent)
IterableSubject
BundleSubject
void
filtersEquallyTo(Intent intent)
void
hasAction(String action)
void
hasComponent(ComponentName component)
void
hasComponent(String packageName, String className)
void
hasComponentClass(Class<Object> componentClass)
void
void
void
hasData(Uri uri)
void
hasFlags(int flag)

Assert that the intent has the given flag set.

void
void
hasPackage(String packageName)
void
static Factory<IntentSubject, Intent>

Public constructors

IntentSubject

public IntentSubject()

Public methods

assertThat

public static IntentSubject assertThat(Intent intent)

categories

public IterableSubject categories()

extras

public BundleSubject extras()

filtersEquallyTo

public void filtersEquallyTo(Intent intent)

hasAction

public void hasAction(String action)

hasComponent

public void hasComponent(ComponentName component)

hasComponent

public void hasComponent(String packageName, String className)

hasComponentClass

public void hasComponentClass(Class<Object> componentClass)

hasComponentClass

public void hasComponentClass(String className)

hasComponentPackage

public void hasComponentPackage(String packageName)

hasData

public void hasData(Uri uri)

hasFlags

public void hasFlags(int flag)

Assert that the intent has the given flag set.

hasNoAction

public void hasNoAction()

hasPackage

public void hasPackage(String packageName)

hasType

public void hasType(String type)

intents

public static Factory<IntentSubject, Intent> intents()