Browse Source

code smell

pull/3/MERGE
CalvinKirs 4 years ago
parent
commit
cd37dd8c49
  1. 2
      dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/AlertPluginInstanceServiceTest.java

2
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/AlertPluginInstanceServiceTest.java

@ -81,7 +81,7 @@ public class AlertPluginInstanceServiceTest {
Assert.assertEquals(Status.PLUGIN_INSTANCE_ALREADY_EXIT, result.get(Constants.STATUS)); Assert.assertEquals(Status.PLUGIN_INSTANCE_ALREADY_EXIT, result.get(Constants.STATUS));
Mockito.when(alertPluginInstanceMapper.insert(Mockito.any())).thenReturn(1); Mockito.when(alertPluginInstanceMapper.insert(Mockito.any())).thenReturn(1);
result = alertPluginInstanceService.create(user, 1, "test1", "test params"); result = alertPluginInstanceService.create(user, 1, "test1", "test params");
Assert.assertEquals(result.get(Constants.STATUS), Status.SUCCESS); Assert.assertEquals(Status.SUCCESS, result.get(Constants.STATUS));
} }
@Test @Test

Loading…
Cancel
Save