Package com.hmsonline.virgil.ext

Examples of com.hmsonline.virgil.ext.PatchMethod


    String body = get.getResponseBodyAsString();
    assertEquals("{\"ADDR1\":\"1234 Fun St.\",\"CITY\":\"Souderton.\"}", body);
    logger.debug(body);

    // PATCH ROW
    PatchMethod patch = new PatchMethod(BASE_URL + KEYSPACE + "/" + COLUMN_FAMILY + "/" + KEY);
    requestEntity = new StringRequestEntity("{\"ADDR1\":\"1235 Fun St.\",\"COUNTY\":\"Montgomery\"}",
        "appication/json", "UTF8");
    patch.setRequestEntity(requestEntity);
    this.send(client, patch, 204);
   
    // FETCH ROW (VERIFY PATCH)
    get = new GetMethod(BASE_URL + KEYSPACE + "/" + COLUMN_FAMILY + "/" + KEY);
    this.send(client, get, 200);
View Full Code Here

TOP

Related Classes of com.hmsonline.virgil.ext.PatchMethod

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.