use of com.ctrip.xpipe.redis.console.alert.policy.AlertPolicy in project x-pipe by ctripcorp.
the class AlertPolicyManagerTest method queryRecepients.
@Test
public void queryRecepients() throws Exception {
AlertPolicy policy = policyManager.alertPolicyMap.get(SendToDBAAlertPolicy.ID);
List<String> expected = policy.queryRecipients(new AlertEntity(null, null, null, null, null, ALERT_TYPE.MARK_INSTANCE_UP));
logger.info("[testQueryRecepients] emails: {}", expected);
Assert.assertEquals(expected, policyManager.queryRecepients(alert));
}
Aggregations