Search in sources :

Example 6 with NotificationController

use of com.fsck.k9.notification.NotificationController in project k-9 by k9mail.

the class LockScreenNotificationTest method setUp.

@Before
public void setUp() throws Exception {
    Context context = RuntimeEnvironment.application;
    builder = createFakeNotificationBuilder();
    publicBuilder = createFakeNotificationBuilder();
    NotificationController controller = createFakeController(context, publicBuilder);
    Account account = createFakeAccount();
    notificationData = createFakeNotificationData(account);
    lockScreenNotification = new LockScreenNotification(controller);
}
Also used : Context(android.content.Context) Account(com.fsck.k9.Account) Before(org.junit.Before)

Example 7 with NotificationController

use of com.fsck.k9.notification.NotificationController in project k-9 by k9mail.

the class WearNotificationsTest method setUp.

@Before
public void setUp() throws Exception {
    account = createAccount();
    notification = createNotification();
    builder = createNotificationBuilder(notification);
    actionCreator = createNotificationActionCreator();
    NotificationController controller = createNotificationController(RuntimeEnvironment.application, builder);
    MessagingController messagingController = createMessagingController();
    wearNotifications = new TestWearNotifications(controller, actionCreator, messagingController);
}
Also used : MessagingController(com.fsck.k9.controller.MessagingController) Before(org.junit.Before)

Aggregations

Account (com.fsck.k9.Account)3 Context (android.content.Context)2 Builder (android.support.v4.app.NotificationCompat.Builder)2 Before (org.junit.Before)2 Test (org.junit.Test)2 Application (android.app.Application)1 MockHelper.mockBuilder (com.fsck.k9.MockHelper.mockBuilder)1 MessagingController (com.fsck.k9.controller.MessagingController)1 Contacts (com.fsck.k9.helper.Contacts)1 AuthenticationFailedException (com.fsck.k9.mail.AuthenticationFailedException)1 CertificateValidationException (com.fsck.k9.mail.CertificateValidationException)1 TransportProvider (com.fsck.k9.mail.TransportProvider)1 NotificationController (com.fsck.k9.notification.NotificationController)1 InvocationOnMock (org.mockito.invocation.InvocationOnMock)1