Browse Source

update ut.

pull/3/MERGE
zhuangchong 4 years ago
parent
commit
0fdb001319
  1. 4
      dolphinscheduler-remote/pom.xml
  2. 18
      dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/command/alert/AlertSendResponseCommand.java
  3. 5
      dolphinscheduler-remote/src/test/java/org/apache/dolphinscheduler/remote/command/alert/AlertSendRequestCommandTest.java

4
dolphinscheduler-remote/pom.xml

@ -35,10 +35,6 @@
</properties>
<dependencies>
<dependency>
<groupId>org.apache.dolphinscheduler</groupId>
<artifactId>dolphinscheduler-spi</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>

18
dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/command/alert/AlertSendResponseCommand.java

@ -31,25 +31,11 @@ public class AlertSendResponseCommand implements Serializable {
* true:All alert are successful,
* false:As long as one alert fails
*/
private boolean alertStatus;
private boolean resStatus;
private List<AlertResult> alertResults;
private List<AlertResult> resResults;
public boolean getAlertStatus() {
return alertStatus;
}
public void setAlertStatus(boolean alertStatus) {
this.alertStatus = alertStatus;
}
public List<AlertResult> getAlertResults() {
return alertResults;
}
public void setAlertResults(List<AlertResult> alertResults) {
this.alertResults = alertResults;
}
public AlertSendResponseCommand() {

5
dolphinscheduler-remote/src/test/java/org/apache/dolphinscheduler/remote/command/alert/AlertSendRequestCommandTest.java

@ -33,5 +33,10 @@ public class AlertSendRequestCommandTest {
AlertSendRequestCommand requestCommand = new AlertSendRequestCommand(groupId,title,content);
Command command = requestCommand.convert2Command();
Assert.assertEquals(CommandType.ALERT_SEND_REQUEST,command.getType());
AlertSendRequestCommand verifyCommand = new AlertSendRequestCommand();
verifyCommand.setGroupId(groupId);
verifyCommand.setContent(content);
verifyCommand.setTitle(title);
}
}

Loading…
Cancel
Save