use of com.dangdang.ddframe.job.statistics.type.task.TaskResultStatistics in project elastic-job by dangdangdotcom.
the class CloudJobRestfulApiTest method assertGetTaskResultStatisticsWithErrorPathParameter.
@Test
public void assertGetTaskResultStatisticsWithErrorPathParameter() throws Exception {
String result = sentGetRequest("http://127.0.0.1:19000/job/statistics/tasks/results/errorPath");
TaskResultStatistics taskResultStatistics = GsonFactory.getGson().fromJson(result, TaskResultStatistics.class);
assertThat(taskResultStatistics.getSuccessCount(), is(0));
assertThat(taskResultStatistics.getFailedCount(), is(0));
}
Aggregations