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); }