Package org.springframework.social.google.api.plus.moments

Examples of org.springframework.social.google.api.plus.moments.Moment


    mockServer
        .expect(requestTo("https://www.googleapis.com/plus/v1/people/me/moments/vault"))
        .andExpect(method(POST))
        .andRespond(
            withSuccess(jsonResource("moment"), APPLICATION_JSON));
    Moment moment = google
        .plusOperations()
        .insertMoment(
            new AddActivity(
                "https://developers.google.com/+/plugins/snippet/examples/thing"));
    assertTrue(moment instanceof AddActivity);
    assertEquals(
        "Eg0xNDAwNDE2MjQ1ODY2GJa6uYvcss-izgEpCHuQgEQo0AkyAhAUQgcY1OXS0c8e",
        moment.getId());
    assertEquals(
        "https://developers.google.com/+/plugins/snippet/examples/thing",
        moment.getTarget().getUrl());
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.google.api.plus.moments.Moment

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.