예제 #1
0
 public void test_991_DeleteTaskList()
     throws InterruptedException, ExecutionException, TimeoutException {
   try {
     TaskList taskList = searchTaskList(UPD_TASKLIST_NAME);
     assertNotNull(taskList);
     LocalTaskList localTaskList = dbHandler.getTaskListByGoogleId(taskList.getId());
     dbHandler.deleteTaskListFinal(localTaskList.getInternalId());
     apiManager.deleteTaskList(taskList.getId());
   } catch (GoogleSyncException e) {
     fail("No remote connection.");
   }
 }
예제 #2
0
 public void test_102_UpdateTaskListForSync()
     throws InterruptedException, ExecutionException, TimeoutException {
   try {
     TaskList taskList = searchTaskList(NEW_TASKLIST_NAME);
     assertNotNull(taskList);
     taskList.setTitle(UPD_TASKLIST_NAME);
     taskList = apiManager.updateTaskList(taskList.getId(), taskList);
     syncManager.execute();
     syncManager.get(1000, TimeUnit.DAYS);
     LocalTaskList localTaskList = dbHandler.getTaskListByGoogleId(taskList.getId());
     assertEquals(localTaskList.getTitle(), taskList.getTitle());
   } catch (GoogleSyncException e) {
     fail("No remote connection.");
   }
 }