Package com.google.wave.api.AbstractRobot

Examples of com.google.wave.api.AbstractRobot.HttpFetcher.send()


  private final List<EventType> calledEvents = new ArrayList<EventType>();

  public void testSubmit() throws Exception {
    HttpFetcher fetcher = mock(HttpFetcher.class);
    when(fetcher.send(contains("http://gmodules.com/api/rpc"),
        eq(AbstractRobot.JSON_MIME_TYPE),
        contains("wave.robot.notifyCapabilitiesHash")))
        .thenReturn("[{\"id\":\"op1\",\"data\":{}}]");

    AbstractRobot robot = new MockRobot(fetcher);
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.