Aug 20, 2020+ */ +public class EmailAlertChannelFactoryTest { + + @Before + public void before() throws Exception { + } + + @After + public void after() throws Exception { + } + + /** + * Method: getName() + */ + @Test + public void testGetName() throws Exception { + } + + /** + * Method: getParams() + */ + @Test + public void testGetParams() throws Exception { + EmailAlertChannelFactory emailAlertChannelFactory = new EmailAlertChannelFactory(); + List
Aug 20, 2020+ */ +public class EmailAlertChannelTest { + + @Before + public void before() throws Exception { + } + + @After + public void after() throws Exception { + } + + /** + * Method: process(AlertInfo info) + */ + @Test + public void testProcess() throws Exception { + EmailAlertChannel emailAlertChannel = new EmailAlertChannel(); + AlertData alertData = new AlertData(); + LinkedHashMap
AlertChannelFactory#getId()
, used to return the name of the plugin implementation,
+ * so that the 'PluginLoad' module can find the plugin implementation class by the name in the configuration file.
+ * The other method is called create(Map config)
. This method contains at least one parameter Map config
.
+ * Config contains custom parameters read from the plug-in configuration file.
+ */
+public interface DolphinSchedulerPlugin {
+
+ default Iterable