use of com.evolveum.midpoint.xml.ns._public.common.common_3.ReportDataType in project midpoint by Evolveum.
the class TestMiscTasks method test100DeleteReportData.
/**
* MID-7277
*/
@Test
public void test100DeleteReportData() throws Exception {
given();
Task task = getTestTask();
OperationResult result = task.getResult();
ReportDataType reportData = new ReportDataType(PrismContext.get()).name("waste data");
repoAddObject(reportData.asPrismObject(), result);
when();
addTask(TASK_DELETE_REPORT_DATA, result);
waitForTaskCloseOrSuspend(TASK_DELETE_REPORT_DATA.oid, 10000);
then();
TaskType taskAfter = assertTask(TASK_DELETE_REPORT_DATA.oid, "after").display().assertSuccess().assertClosed().assertProgress(1).getObjectable();
TaskInformation information = TaskInformation.createForTask(taskAfter, taskAfter);
assertThat(information).isInstanceOf(ActivityBasedTaskInformation.class);
assertThat(information.getProgressDescriptionShort()).as("progress description").isEqualTo("100.0%");
assertNoRepoObject(ReportDataType.class, reportData.getOid());
}
Aggregations