Package com.google.greaze.end2end.fixtures

Examples of com.google.greaze.end2end.fixtures.RestClientStubFake


      .build();
    GsonBuilder gsonBuilder = new GsonBuilder()
      .registerTypeAdapterFactory(new IdGsonTypeAdapterFactory());
    ResourceUrlPaths urlPaths = new ResourceUrlPaths("http://localhost/fake/service/rest",
        "/fake", "/service", RESOURCE_PREFIX);
    RestClientStub stub = new RestClientStubFake(responseBuilders,
        restCallSpecMap, gsonBuilder, ImmutableList.of(RESOURCE_PATH), urlPaths, null);
    this.client = new ResourceDepotClient<Employee>(
        stub, RESOURCE_PATH, Employee.class, new GsonBuilder(), false);
  }
View Full Code Here


    ResponseBuilderMap responseBuilders = new ResponseBuilderMap.Builder()
      .set(Employee.class, responseBuilder)
      .build();
    GsonBuilder gsonBuilder = new GsonBuilder()
      .registerTypeAdapterFactory(new IdGsonTypeAdapterFactory());
    RestClientStub stub = new RestClientStubFake(responseBuilders,
        restCallSpecMap, gsonBuilder, ImmutableList.of(resourcePath), urlPaths, null);
    this.client = new ResourceDepotClient<Employee>(
        stub, Employee.class, callSpec, new GsonBuilder(), true);
    this.context = new WebContext.Builder()
      .put(HEADER1, "value1")
View Full Code Here

TOP

Related Classes of com.google.greaze.end2end.fixtures.RestClientStubFake

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.