From 1622dde5db4c67932c2510d56d37562d4a5b47a8 Mon Sep 17 00:00:00 2001 From: CalvinKirs Date: Tue, 26 Jan 2021 14:42:36 +0800 Subject: [PATCH] add ut --- .../api/service/AlertPluginInstanceServiceTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/AlertPluginInstanceServiceTest.java b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/AlertPluginInstanceServiceTest.java index 1801794556..09deed03b5 100644 --- a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/AlertPluginInstanceServiceTest.java +++ b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/AlertPluginInstanceServiceTest.java @@ -85,13 +85,13 @@ public class AlertPluginInstanceServiceTest { } @Test - public void testDelete() { - List ids = Arrays.asList("11,2,3",null,"98,1"); + public void testDelete() { + List ids = Arrays.asList("11,2,3", null, "98,1"); Mockito.when(alertGroupMapper.queryInstanceIdsList()).thenReturn(ids); - Map result= alertPluginInstanceService.delete(user, 1); + Map result = alertPluginInstanceService.delete(user, 1); Assert.assertEquals(result.get(Constants.STATUS), Status.DELETE_ALERT_PLUGIN_INSTANCE_ERROR_HAS_ALERT_GROUP_ASSOCIATED); Mockito.when(alertPluginInstanceMapper.deleteById(9)).thenReturn(1); - result= alertPluginInstanceService.delete(user, 9); + result = alertPluginInstanceService.delete(user, 9); Assert.assertEquals(result.get(Constants.STATUS), Status.SUCCESS); }