NotificationSubject


class NotificationSubject : Subject


Subject for making assertions about android.app.Notifications.

Summary

Public functions

java-static NotificationSubject!
assertThat(notification: Notification!)
PendingIntentSubject!
PendingIntentSubject!
Unit
BundleSubject!
Unit
hasFlags(flags: Int)

Assert that the notification has the given flags set.

java-static Subject.Factory<NotificationSubject!, Notification!>!
StringSubject!

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(notification: Notification!): NotificationSubject!

contentIntent

fun contentIntent(): PendingIntentSubject!

deleteIntent

fun deleteIntent(): PendingIntentSubject!

doesNotHaveFlags

fun doesNotHaveFlags(flags: Int): Unit

extras

fun extras(): BundleSubject!

hasFlags

fun hasFlags(flags: Int): Unit

Assert that the notification has the given flags set.

notifications

java-static fun notifications(): Subject.Factory<NotificationSubject!, Notification!>!

tickerText

fun tickerText(): StringSubject!