Package com.couchace.core.api.request

Examples of com.couchace.core.api.request.PostEntityRequest


  private final CityEntity city = new CityEntity("4234", "1-jflk3j4odj92p3oem1239jke0329kk345", "Oakhurst", 2829, "1) This is a city\n2)It's really cool");
  private final LocationEntity location = new LocationEntity("1122", "1-03ba856139647f1ed4694ceb1fe21751", "North", "Toronto", "1) I don't know where this is\n2) No one really even cares.");

  public void createLocationForPost() {
    PostEntityRequest request = new PostEntityRequest(null, "location", location);
    String json = strategy.createJsonForPost(request);

    Assert.assertEquals(
        removeLineSeparators(json),
        removeLineSeparators(LOCATION_JSON_POST));
View Full Code Here


        removeLineSeparators(json),
        removeLineSeparators(LOCATION_JSON_PUT));
  }

  public void createCityForPost() {
    PostEntityRequest request = new PostEntityRequest(null, "city", city);
    String json = strategy.createJsonForPost(request);

    Assert.assertEquals(
        removeLineSeparators(json),
        removeLineSeparators(CITY_JSON_POST));
View Full Code Here

TOP

Related Classes of com.couchace.core.api.request.PostEntityRequest

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.