@Test public void notifcationServiceCanOnlyHandleBigPandaSubscription() { assertThat(service.canHandle(SubscriptionType.BIGPANDA), is(true)); for (SubscriptionType type : SubscriptionType.values()) { if (type == SubscriptionType.BIGPANDA) { continue; } assertThat(service.canHandle(type), is(false)); } }
@Override public boolean canHandle(SubscriptionType subscriptionType) { return subscriptionType == SubscriptionType.BIGPANDA; }
BigPandaNotificationService implements NotificationService { @Override public boolean canHandle(SubscriptionType subscriptionType) { return subscriptionType == SubscriptionType.BIGPANDA; } }
BigPandaNotificationService implements NotificationService { @Override public boolean canHandle(SubscriptionType subscriptionType) { return subscriptionType == SubscriptionType.BIGPANDA; } @Inject  BigPandaNotificationService(SeyrenConfig seyrenConfig); }
BigPandaNotificationService implements NotificationService { @Override public boolean canHandle(SubscriptionType subscriptionType) { return subscriptionType == SubscriptionType.BIGPANDA; } @Inject  BigPandaNotificationService(SeyrenConfig seyrenConfig); @Override void sendNotification(Check check, Subscription subscription, List<Alert> alerts); @Override boolean canHandle(SubscriptionType subscriptionType); }
BigPandaNotificationService implements NotificationService { @Override public boolean canHandle(SubscriptionType subscriptionType) { return subscriptionType == SubscriptionType.BIGPANDA; } @Inject  BigPandaNotificationService(SeyrenConfig seyrenConfig); @Override void sendNotification(Check check, Subscription subscription, List<Alert> alerts); @Override boolean canHandle(SubscriptionType subscriptionType);  }