lightbulb_outline Please take our October 2018 developer survey. Start survey

NotificationSubject

public class NotificationSubject
extends Subject<NotificationSubjectNotification>

java.lang.Object
   ↳ com.google.common.truth.Subject<androidx.test.ext.truth.app.NotificationSubjectandroid.app.Notification>
     ↳ 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

From class com.google.common.truth.Subject
From class java.lang.Object

Public methods

assertThat

NotificationSubject assertThat (Notification notification)

Parameters
notification Notification

Returns
NotificationSubject

contentIntent

PendingIntentSubject contentIntent ()

Returns
PendingIntentSubject

deleteIntent

PendingIntentSubject deleteIntent ()

Returns
PendingIntentSubject

doesNotHaveFlags

void doesNotHaveFlags (int flags)

Parameters
flags int

extras

BundleSubject extras ()

Returns
BundleSubject

hasFlags

void hasFlags (int flags)

Assert that the notification has the given flags set.

Parameters
flags int

notifications

Factory<NotificationSubjectNotification> notifications ()

Returns
Factory<NotificationSubjectNotification>

tickerText

StringSubject tickerText ()

Returns
StringSubject