NotificationSubject
Artifact: androidx.test.ext:truth
public class NotificationSubject extends Subject
| java.lang.Object | ||
| ↳ | com.google.common.truth.Subject | |
| ↳ | androidx.test.ext.truth.app.NotificationSubject |
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 |
extras() |
final void |
hasFlags(int flags)Assert that the notification has the given flags set. |
static Subject.Factory<NotificationSubject, Notification> |
|
final StringSubject |
Inherited methods |
||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public methods
hasFlags
public final void hasFlags(int flags)
Assert that the notification has the given flags set.