|
|
@ -31,8 +31,6 @@ import org.junit.Test; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
|
|
|
|
import com.google.common.collect.ImmutableList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* AlertPluginManager Tester. |
|
|
|
* AlertPluginManager Tester. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -55,13 +53,6 @@ public class AlertPluginManagerTest { |
|
|
|
alertPluginManagerConfig.setMavenLocalRepository(Objects.requireNonNull(PropertyUtils.getString(AlertServer.MAVEN_LOCAL_REPOSITORY)).trim()); |
|
|
|
alertPluginManagerConfig.setMavenLocalRepository(Objects.requireNonNull(PropertyUtils.getString(AlertServer.MAVEN_LOCAL_REPOSITORY)).trim()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
DolphinPluginLoader alertPluginLoader = new DolphinPluginLoader(alertPluginManagerConfig, ImmutableList.of(alertPluginManager)); |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
//alertPluginLoader.loadPlugins();
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
throw new RuntimeException("load Alert Plugin Failed !", e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Assert.assertNull(alertPluginManager.getAlertChannelFactoryMap().get("Email")); |
|
|
|
Assert.assertNull(alertPluginManager.getAlertChannelFactoryMap().get("Email")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|