use of com.microsoft.graph.models.extensions.PlannerTask in project msgraph-sdk-java by microsoftgraph.
the class PlannerTests method testUpdateTaskCompletion.
@Test
public void testUpdateTaskCompletion() throws InterruptedException {
PlannerTask task = new PlannerTask();
task.percentComplete = 50;
IPlannerTaskRequest req = prb.tasks(planTask.id).buildRequest();
req.addHeader("If-Match", planTask.etag);
req.patch(task);
Thread.sleep(4000);
PlannerTask updatedTask = prb.tasks(planTask.id).buildRequest().get();
assertEquals(task.percentComplete, updatedTask.percentComplete);
}
Aggregations