Package org.springframework.social.google.api.tasks

Examples of org.springframework.social.google.api.tasks.TaskList


    mockServer
        .expect(requestTo("https://www.googleapis.com/tasks/v1/users/@me/lists/@default"))
        .andExpect(method(GET))
        .andRespond(
            withSuccess(jsonResource("tasklist"), APPLICATION_JSON));
    TaskList taskList = google.taskOperations().getTaskList(DEFAULT);
    assertFirstTaskList(taskList);
  }
View Full Code Here


    mockServer
        .expect(requestTo("https://www.googleapis.com/tasks/v1/users/@me/lists/MTY1OTA3NzU4OTQyMFAzMjM0MDc6MDow"))
        .andExpect(method(GET))
        .andRespond(
            withSuccess(jsonResource("tasklist"), APPLICATION_JSON));
    TaskList taskList = google.taskOperations().getTaskList(
        FIRST_TASK_LIST_ID);
    assertFirstTaskList(taskList);
  }
View Full Code Here

    mockServer
        .expect(requestTo("https://www.googleapis.com/tasks/v1/users/@me/lists"))
        .andExpect(method(POST))
        .andRespond(
            withSuccess(jsonResource("tasklist"), APPLICATION_JSON));
    TaskList taskList = google.taskOperations().saveTaskList(
        new TaskList(FIRST_TASK_LIST_TITLE));
    assertFirstTaskList(taskList);
  }
View Full Code Here

    mockServer
        .expect(requestTo("https://www.googleapis.com/tasks/v1/users/@me/lists/MTY1OTA3NzU4OTQyMFAzMjM0MDc6MDow"))
        .andExpect(method(PUT))
        .andRespond(
            withSuccess(jsonResource("tasklist"), APPLICATION_JSON));
    TaskList taskList = google.taskOperations().saveTaskList(
        new TaskList(FIRST_TASK_LIST_ID, FIRST_TASK_LIST_TITLE));
    assertFirstTaskList(taskList);
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.google.api.tasks.TaskList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.