@Test
public void test_remedy() {
toolEvent = new ToolArbitrateEvent();
RemedyIndexEventData data = new RemedyIndexEventData();
Date now = new Date();
Long start = now.getTime() - 24 * 3600 * 60;
Long startProcessId = 100L;
for (int i = 10; i >= 1; i--) {
data.setPipelineId(pipelineId);
data.setProcessId(startProcessId + i);
data.setStartTime(start + startProcessId + i);
data.setEndTime(start + startProcessId + 2 * i);
toolEvent.addRemedyIndex(data);
}
List<RemedyIndexEventData> indexs = toolEvent.listRemedyIndexs(pipelineId);
want.collection(indexs).sizeEq(10);