NotificationSubject

public class NotificationSubject
extends Subject

java.lang.Object
   ↳ com.google.common.truth.Subject
     ↳ androidx.test.ext.truth.app.NotificationSubject


Subject for making assertions about Notifications.

Summary

Public methods

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

Assert that the notification has the given flags set.

static Factory<NotificationSubjectNotification> notifications()
final StringSubject tickerText()

Inherited methods

Public methods

assertThat

public static NotificationSubject assertThat (Notification notification)

Parameters
notification Notification

Returns
NotificationSubject

contentIntent

public final PendingIntentSubject contentIntent ()

Returns
PendingIntentSubject

deleteIntent

public final PendingIntentSubject deleteIntent ()

Returns
PendingIntentSubject

doesNotHaveFlags

public final void doesNotHaveFlags (int flags)

Parameters
flags int

extras

public final BundleSubject extras ()

Returns
BundleSubject

hasFlags

public final void hasFlags (int flags)

Assert that the notification has the given flags set.

Parameters
flags int

notifications

public static Factory<NotificationSubjectNotification> notifications ()

Returns
Factory<NotificationSubjectNotification>

tickerText

public final StringSubject tickerText ()

Returns
StringSubject