Search in sources :

Example 1 with Caves

use of com.couchbase.client.test.Caves in project couchbase-jvm-clients by couchbase.

the class CavesKeyValueIntegrationTest method setGet.

@Caves("kv/crud/SetGet")
@Test
void setGet() {
    JsonObject testDoc = JsonObject.create().put("foo", "bar");
    collection.upsert("test-doc", testDoc);
    GetResult result = collection.get("test-doc");
    assertEquals(testDoc, result.contentAsObject());
}
Also used : GetResult(com.couchbase.client.java.kv.GetResult) JsonObject(com.couchbase.client.java.json.JsonObject) JavaIntegrationTest(com.couchbase.client.java.util.JavaIntegrationTest) Test(org.junit.jupiter.api.Test) Caves(com.couchbase.client.test.Caves)

Aggregations

JsonObject (com.couchbase.client.java.json.JsonObject)1 GetResult (com.couchbase.client.java.kv.GetResult)1 JavaIntegrationTest (com.couchbase.client.java.util.JavaIntegrationTest)1 Caves (com.couchbase.client.test.Caves)1 Test (org.junit.jupiter.api.Test)1