@Test public void testHasMailNotification() { Assert.assertTrue(MailNotificationUtil.hasMailNotification(ExecutableState.DISCARDED)); Assert.assertTrue(MailNotificationUtil.hasMailNotification(ExecutableState.ERROR)); Assert.assertTrue(MailNotificationUtil.hasMailNotification(ExecutableState.SUCCEED)); Assert.assertFalse(MailNotificationUtil.hasMailNotification(ExecutableState.RUNNING)); Assert.assertFalse(MailNotificationUtil.hasMailNotification(ExecutableState.STOPPED)); Assert.assertFalse(MailNotificationUtil.hasMailNotification(ExecutableState.READY)); }
public static boolean hasMailNotification(ExecutableState state) { return getMailTemplateKey(state) != null; }
MailNotificationUtil { public static boolean hasMailNotification(ExecutableState state) { return getMailTemplateKey(state) != null; } }
MailNotificationUtil { public static boolean hasMailNotification(ExecutableState state) { return getMailTemplateKey(state) != null; } private  MailNotificationUtil(); }
MailNotificationUtil { public static boolean hasMailNotification(ExecutableState state) { return getMailTemplateKey(state) != null; } private  MailNotificationUtil(); static String getLocalHostName(); static String getMailContent(ExecutableState state, Map<String, Object> dataMap); static String getMailContent(String key, Map<String, Object> dataMap); static String getMailTitle(String... titleParts); static boolean hasMailNotification(ExecutableState state); }
MailNotificationUtil { public static boolean hasMailNotification(ExecutableState state) { return getMailTemplateKey(state) != null; } private  MailNotificationUtil(); static String getLocalHostName(); static String getMailContent(ExecutableState state, Map<String, Object> dataMap); static String getMailContent(String key, Map<String, Object> dataMap); static String getMailTitle(String... titleParts); static boolean hasMailNotification(ExecutableState state); static final String JOB_ERROR; static final String JOB_DISCARD; static final String JOB_SUCCEED; static final String METADATA_PERSIST_FAIL; static final String NA; }