Package com.google.dataconnector.client.fetchrequest

Examples of com.google.dataconnector.client.fetchrequest.URLConnectionStrategy


      .setId("test1").setStrategy("URLConnection").setResource("http://www.google.com")
      .build();
   
    FetchReply.Builder builder = FetchReply.newBuilder();
   
    URLConnectionStrategy s = new URLConnectionStrategy();
    s.process(ar, builder);

    assertFalse("Strategy shouldn't have to set the id.", builder.hasId());
    assertTrue("Must return a status.", builder.hasStatus());
    assertTrue("This url should have contents.", builder.hasContents());
  }
View Full Code Here

TOP

Related Classes of com.google.dataconnector.client.fetchrequest.URLConnectionStrategy

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.