NotificationSubject


public class NotificationSubject extends Subject


Subject for making assertions about android.app.Notifications.

Summary

Public methods

static NotificationSubject
assertThat(Notification notification)
final PendingIntentSubject
final PendingIntentSubject
final void
doesNotHaveFlags(int flags)
final BundleSubject
final void
hasFlags(int flags)

Assert that the notification has the given flags set.

static Subject.Factory<NotificationSubjectNotification>
final StringSubject

Inherited methods

From com.google.common.truth.Subject
String
final boolean

This method is deprecated.

final void
final void
failWithoutActual(Fact first, Fact[] rest)
final int

This method is deprecated.

final StandardSubjectBuilder
void
isAnyOf(Object first, Object second, @Nullable Object[] rest)
void
isEqualTo(Object expected)
void
void
void
isNoneOf(Object first, Object second, @Nullable Object[] rest)
void
isNotEqualTo(Object unexpected)
void
void
void
final void
void
final void
String

This method is deprecated.

Public methods

assertThat

public static NotificationSubject assertThat(Notification notification)

contentIntent

public final PendingIntentSubject contentIntent()

deleteIntent

public final PendingIntentSubject deleteIntent()

doesNotHaveFlags

public final void doesNotHaveFlags(int flags)

extras

public final BundleSubject extras()

hasFlags

public final void hasFlags(int flags)

Assert that the notification has the given flags set.

notifications

public static Subject.Factory<NotificationSubjectNotificationnotifications()

tickerText

public final StringSubject tickerText()