Skip to content

Commit 916ab88

Browse files
committed
adds scenario to test
1 parent 899f9fa commit 916ab88

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

couchbase-driver/src/test/java/org/jnosql/diana/couchbase/key/CouchbaseBucketManagerTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ public void shouldPutValues() {
9494
assertEquals(userSoro, soro.get().get(User.class));
9595
}
9696

97+
98+
@Test
99+
public void shouldPutPrimitivesValues() {
100+
keyValueEntityManager.put("integer", 1);
101+
Optional<Value> integer = keyValueEntityManager.get("integer");
102+
assertTrue(integer.isPresent());
103+
assertEquals(Integer.valueOf(1), integer.get().get(Integer.class));
104+
}
105+
97106
@Test
98107
public void shouldPutValueTtl() throws InterruptedException {
99108

0 commit comments

Comments
 (0)