Пример #1
0
 public void test_101_AddTasklistForSync()
     throws InterruptedException, ExecutionException, TimeoutException {
   try {
     TaskList taskList = apiManager.insertTaskList(NEW_TASKLIST_NAME);
     syncManager.execute();
     syncManager.get(1000, TimeUnit.DAYS);
     LocalTaskList localTaskList = dbHandler.getTaskListByGoogleId(taskList.getId());
     assertNotNull(localTaskList);
   } catch (GoogleSyncException e) {
     fail("No remote connection.");
   }
 }