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

Class Overview

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()
[Expand]
Inherited Methods
From class com.google.common.truth.Subject
From class java.lang.Object

Public Methods

public static NotificationSubject assertThat (Notification notification)

Parameters
notification Notification
Returns
NotificationSubject

public final PendingIntentSubject contentIntent ()

public final PendingIntentSubject deleteIntent ()

public final void doesNotHaveFlags (int flags)

Parameters
flags int

public final BundleSubject extras ()

Returns
BundleSubject

public final void hasFlags (int flags)

Assert that the notification has the given flags set.

Parameters
flags int

public static Factory<NotificationSubjectNotification> notifications ()

Returns
Factory<NotificationSubjectNotification>

public final StringSubject tickerText ()

Returns
StringSubject