IntentSubject

class IntentSubject : Subject


Subject for making assertions about Intents.

Summary

Public functions

java-static IntentSubject!
assertThat(intent: Intent!)
IterableSubject!
BundleSubject!
Unit
Unit
hasAction(action: String!)
Unit
Unit
hasComponent(packageName: String!, className: String!)
Unit
Unit
hasComponentClass(componentClass: Class<Any!>!)
Unit
hasComponentPackage(packageName: String!)
Unit
hasData(uri: Uri!)
Unit
hasFlags(flag: Int)

Assert that the intent has the given flag set.

Unit
Unit
hasPackage(packageName: String!)
Unit
hasType(type: String!)
java-static Subject.Factory<IntentSubject!, Intent!>!

Inherited functions

From com.google.common.truth.Subject
String!
Boolean
equals(o: Any!)

This function is deprecated.

Unit
failWithActual(key: String!, value: Any!)
Unit
failWithoutActual(first: Fact!, rest: Array<Fact!>!)
Int

This function is deprecated.

StandardSubjectBuilder!
Unit
isAnyOf(first: Any!, second: Any!, rest: Array<Any!>!)
Unit
isEqualTo(expected: Any!)
Unit
isIn(iterable: (Mutable)Iterable<Any!>!)
Unit
isInstanceOf(clazz: Class<Any!>!)
Unit
isNoneOf(first: Any!, second: Any!, rest: Array<Any!>!)
Unit
isNotEqualTo(unexpected: Any!)
Unit
isNotIn(iterable: (Mutable)Iterable<Any!>!)
Unit
Unit
Unit
isNotSameInstanceAs(unexpected: Any!)
Unit
Unit
isSameInstanceAs(expected: Any!)
String!

This function is deprecated.

Public functions

assertThat

java-static fun assertThat(intent: Intent!): IntentSubject!

categories

fun categories(): IterableSubject!

extras

fun extras(): BundleSubject!

filtersEquallyTo

fun filtersEquallyTo(intent: Intent!): Unit

hasAction

fun hasAction(action: String!): Unit

hasComponent

fun hasComponent(component: ComponentName!): Unit

hasComponent

fun hasComponent(packageName: String!, className: String!): Unit

hasComponentClass

fun hasComponentClass(className: String!): Unit

hasComponentClass

fun hasComponentClass(componentClass: Class<Any!>!): Unit

hasComponentPackage

fun hasComponentPackage(packageName: String!): Unit

hasData

fun hasData(uri: Uri!): Unit

hasFlags

fun hasFlags(flag: Int): Unit

Assert that the intent has the given flag set.

hasNoAction

fun hasNoAction(): Unit

hasPackage

fun hasPackage(packageName: String!): Unit

hasType

fun hasType(type: String!): Unit

intents

java-static fun intents(): Subject.Factory<IntentSubject!, Intent!>!