You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2019/12/27 10:00:07 UTC
[GitHub] [incubator-dolphinscheduler] qiaozhanwei opened a new pull request
#1616: AlertMappert UT modify
qiaozhanwei opened a new pull request #1616: AlertMappert UT modify
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1616
AlertMappert UT modify
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] qiaozhanwei merged pull request #1616:
AlertMappert UT modify #1465
Posted by GitBox <gi...@apache.org>.
qiaozhanwei merged pull request #1616: AlertMappert UT modify #1465
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1616
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] qiaozhanwei commented on issue #1616:
AlertMappert UT modify #1465
Posted by GitBox <gi...@apache.org>.
qiaozhanwei commented on issue #1616: AlertMappert UT modify #1465
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1616#issuecomment-569412490
@Test
public void testUpdate(){
Alert expectedAlert = createAlert();
expectedAlert.setAlertStatus(AlertStatus.EXECUTION_FAILURE);
expectedAlert.setLog("error");
expectedAlert.setUpdateTime(DateUtils.getCurrentDate());
alertMapper.updateById(expectedAlert);
Alert actualAlert = alertMapper.selectById(expectedAlert.getId());
assertEquals(expectedAlert, actualAlert);
}
for example above , It's not enough to just judge by id
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services