MessageCenter extends AirshipComponent { public void showMessageCenter() { showMessageCenter(null); } @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)  MessageCenter(@NonNull Context context,
                         @NonNull PreferenceDataStore dataStore,
                         @NonNull AirshipChannel channel,
                         @NonNull PushManager pushManager); @VisibleForTesting @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)  MessageCenter(@NonNull Context context,
                  @NonNull PreferenceDataStore dataStore,
                  @NonNull Inbox inbox,
                  @NonNull PushManager pushManager); @NonNull static MessageCenter shared(); @Override @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @AirshipComponentGroups.Group int getComponentGroup(); @WorkerThread @JobInfo.JobResult @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) int onPerformJob(@NonNull UAirship airship, @NonNull JobInfo jobInfo); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) void tearDown(); @NonNull Inbox getInbox(); @NonNull User getUser(); @Nullable Predicate<Message> getPredicate(); void setPredicate(@Nullable Predicate<Message> predicate); void setOnShowMessageCenterListener(@Nullable OnShowMessageCenterListener listener); void showMessageCenter(); void showMessageCenter(@Nullable String messageId); @Nullable static String parseMessageId(@Nullable Intent intent); @NonNull
    static final String VIEW_MESSAGE_CENTER_INTENT_ACTION; @NonNull
    static final String VIEW_MESSAGE_INTENT_ACTION; @NonNull
    static final String MESSAGE_DATA_SCHEME; }
@Test public void testShowMessageCenter() { this.messageCenter.showMessageCenter(); Intent intent = shadowApplication.getNextStartedActivity(); assertEquals(MessageCenter.VIEW_MESSAGE_CENTER_INTENT_ACTION, intent.getAction()); assertEquals(context.getPackageName(), intent.getPackage()); }
@Test public void testShowMessage() { this.messageCenter.showMessageCenter("id"); Intent intent = shadowApplication.getNextStartedActivity(); assertEquals(MessageCenter.VIEW_MESSAGE_INTENT_ACTION, intent.getAction()); assertEquals("message:id", intent.getData().toString()); assertEquals(context.getPackageName(), intent.getPackage()); }