From a263455d6a7d1f596d19acf2f799179b42ac26f9 Mon Sep 17 00:00:00 2001 From: zhuangchong Date: Fri, 23 Oct 2020 13:08:07 +0800 Subject: [PATCH] add code checkstyle. --- .../service/alert/AlertClientServiceTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dolphinscheduler-service/src/test/java/org/apache/dolphinscheduler/service/alert/AlertClientServiceTest.java b/dolphinscheduler-service/src/test/java/org/apache/dolphinscheduler/service/alert/AlertClientServiceTest.java index 98f2b14d54..1624c7dbaa 100644 --- a/dolphinscheduler-service/src/test/java/org/apache/dolphinscheduler/service/alert/AlertClientServiceTest.java +++ b/dolphinscheduler-service/src/test/java/org/apache/dolphinscheduler/service/alert/AlertClientServiceTest.java @@ -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();