Package com.fourspaces.couchdb

Examples of com.fourspaces.couchdb.Update.addParameter()


 
  @Test
  public void testPUTUpdate()
      throws Exception {
    Update putUpdate = new Update("junit/put", "test_data");
    putUpdate.addParameter("field1", "UpdatedByPUT");
       
    boolean result = foo.updateDocument(putUpdate);
    assertTrue(result);
   
    // Retrieve the field and make sure the value is correct
View Full Code Here


 
  @Test
  public void testPOSTUpdate()
      throws Exception {   
    Update postUpdate = new Update("junit/post", "test_data");
    postUpdate.addParameter("field2", "UpdatedByPOST");
    postUpdate.setMethodPOST(true);
       
    boolean result = foo.updateDocument(postUpdate);
    assertTrue(result);
   
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.