@Test public void testGetMailTitle() { String[] titleParts = new String[] { "JOB", "SUCCEED" }; Assert.assertEquals("[" + titleParts[0] + "]-[" + titleParts[1] + "]", MailNotificationUtil.getMailTitle(titleParts)); }
public static String getMailTitle(String... titleParts) { return "[" + Joiner.on("]-[").join(titleParts) + "]"; }
MailNotificationUtil { public static String getMailTitle(String... titleParts) { return "[" + Joiner.on("]-[").join(titleParts) + "]"; } }
MailNotificationUtil { public static String getMailTitle(String... titleParts) { return "[" + Joiner.on("]-[").join(titleParts) + "]"; } private  MailNotificationUtil(); }
MailNotificationUtil { public static String getMailTitle(String... titleParts) { return "[" + Joiner.on("]-[").join(titleParts) + "]"; } 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 String getMailTitle(String... titleParts) { return "[" + Joiner.on("]-[").join(titleParts) + "]"; } 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; }