mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 04:39:00 +08:00
add code checkstyle.
This commit is contained in:
parent
36cfcc43ce
commit
a263455d6a
@ -18,13 +18,14 @@
|
||||
package org.apache.dolphinscheduler.service.alert;
|
||||
|
||||
import org.apache.dolphinscheduler.remote.command.alert.AlertSendResponseCommand;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* alert client service test
|
||||
*/
|
||||
@ -32,9 +33,8 @@ public class AlertClientServiceTest {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(AlertClientServiceTest.class);
|
||||
|
||||
|
||||
@Test
|
||||
public void testSendAlert(){
|
||||
public void testSendAlert() {
|
||||
String host;
|
||||
int port = 50501;
|
||||
int groupId = 1;
|
||||
@ -48,7 +48,7 @@ public class AlertClientServiceTest {
|
||||
Assert.assertNull(alertSendResponseCommand);
|
||||
|
||||
host = "127.0.0.1";
|
||||
AlertSendResponseCommand alertSendResponseCommand_1 = alertClient.sendAlert(host, port, groupId, title, content);
|
||||
alertSendResponseCommand = alertClient.sendAlert(host, port, groupId, title, content);
|
||||
|
||||
if (Objects.nonNull(alertClient) && alertClient.isRunning()) {
|
||||
alertClient.close();
|
||||
|
Loading…
Reference in New Issue
Block a user