Search in sources :

Example 1 with User

use of org.eclipse.jnosql.communication.infinispan.keyvalue.model.User in project jnosql-diana-driver by eclipse.

the class KeyValueEntityManagerTest method shouldMultiGet.

@Test
public void shouldMultiGet() {
    User user = new User("otavio");
    KeyValueEntity keyValue = KeyValueEntity.of("otavio", Value.of(user));
    keyValueEntityManager.put(keyValue);
    assertNotNull(keyValueEntityManager.get("otavio"));
}
Also used : User(org.eclipse.jnosql.communication.infinispan.keyvalue.model.User) KeyValueEntity(jakarta.nosql.keyvalue.KeyValueEntity) Test(org.junit.jupiter.api.Test)

Aggregations

KeyValueEntity (jakarta.nosql.keyvalue.KeyValueEntity)1 User (org.eclipse.jnosql.communication.infinispan.keyvalue.model.User)1 Test (org.junit.jupiter.api.Test)1