Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

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

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