@Test public void testEmptyQueryRecipients() throws Exception { configService.stopAlertSystem(new ConfigModel(), 1); alert.setAlertType(ALERT_TYPE.MARK_INSTANCE_UP); EmailReceiverModel result = policyManager.queryEmailReceivers(alert); logger.info("[recipients] {}", result); Assert.assertFalse(result.getRecipients().isEmpty()); alert.setAlertType(ALERT_TYPE.ALERT_SYSTEM_OFF); result = policyManager.queryEmailReceivers(alert); logger.info("[recipients] {}", result); Assert.assertFalse(result.getRecipients().isEmpty()); alert.setAlertType(ALERT_TYPE.SENTINEL_MONITOR_REDUNDANT_REDIS); result = policyManager.queryEmailReceivers(alert); logger.info("[recipients] {}", result); Assert.assertFalse(result.getRecipients().isEmpty()); alert.setAlertType(ALERT_TYPE.CLIENT_INCONSIS); result = policyManager.queryEmailReceivers(alert); logger.info("[recipients] {}", result); Assert.assertFalse(result.getRecipients().isEmpty()); }
public EmailReceiverModel queryEmailReceivers(AlertEntity alert) { return emailReceiver.receivers(alert); }
AlertPolicyManager { public EmailReceiverModel queryEmailReceivers(AlertEntity alert) { return emailReceiver.receivers(alert); } }
AlertPolicyManager { public EmailReceiverModel queryEmailReceivers(AlertEntity alert) { return emailReceiver.receivers(alert); }  }
AlertPolicyManager { public EmailReceiverModel queryEmailReceivers(AlertEntity alert) { return emailReceiver.receivers(alert); }  @PostConstruct void initPolicies(); List<AlertChannel> queryChannels(AlertEntity alert); long queryRecoverMilli(AlertEntity alert); long querySuspendMilli(AlertEntity alert); EmailReceiverModel queryEmailReceivers(AlertEntity alert); void markCheckInterval(ALERT_TYPE alertType, LongSupplier checkInterval); Map<EmailReceiverModel, Map<ALERT_TYPE, Set<AlertEntity>>> queryGroupedEmailReceivers(
            AlertEntityHolderManager alerts); }
AlertPolicyManager { public EmailReceiverModel queryEmailReceivers(AlertEntity alert) { return emailReceiver.receivers(alert); }  @PostConstruct void initPolicies(); List<AlertChannel> queryChannels(AlertEntity alert); long queryRecoverMilli(AlertEntity alert); long querySuspendMilli(AlertEntity alert); EmailReceiverModel queryEmailReceivers(AlertEntity alert); void markCheckInterval(ALERT_TYPE alertType, LongSupplier checkInterval); Map<EmailReceiverModel, Map<ALERT_TYPE, Set<AlertEntity>>> queryGroupedEmailReceivers(
            AlertEntityHolderManager alerts);  }