Examples of Todos


Examples of org.springframework.social.foursquare.api.Todos

    public void getTodos() {
        mockServer.expect(requestTo("https://api.foursquare.com/v2/users/self/todos?oauth_token=ACCESS_TOKEN&v=20110609&sort=recent"))
            .andExpect(method(GET))
            .andRespond(withResponse(new ClassPathResource("testdata/todos.json", getClass()), responseHeaders));
       
        Todos todos = foursquare.userOperations().getRecentTodos();
        assertEquals(2, todos.getCount());
        assertTrue(todos.getItems().get(0) != null);
        assertTrue(todos.getItems().get(0).getTip() != null);
        mockServer.verify();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.