org.apache.camel.component.couchdb
Class CouchDbClientWrapper

java.lang.Object
  extended by org.apache.camel.component.couchdb.CouchDbClientWrapper

public class CouchDbClientWrapper
extends Object

Necessary to allow mockito to mock this client. Once LightCouch library adds an interface for the client, this class can be removed.


Constructor Summary
CouchDbClientWrapper(org.lightcouch.CouchDbClient client)
           
 
Method Summary
 org.lightcouch.Changes changes()
           
 org.lightcouch.CouchDbContext context()
           
 org.lightcouch.Response save(Object doc)
           
 org.lightcouch.Response update(Object doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CouchDbClientWrapper

public CouchDbClientWrapper(org.lightcouch.CouchDbClient client)
Method Detail

update

public org.lightcouch.Response update(Object doc)

save

public org.lightcouch.Response save(Object doc)

changes

public org.lightcouch.Changes changes()

context

public org.lightcouch.CouchDbContext context()


Apache Camel