Search in sources :

Example 1 with User

use of org.jnosql.diana.infinispan.key.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.jnosql.diana.infinispan.key.model.User) KeyValueEntity(org.jnosql.diana.api.key.KeyValueEntity) Test(org.junit.jupiter.api.Test)

Aggregations

KeyValueEntity (org.jnosql.diana.api.key.KeyValueEntity)1 User (org.jnosql.diana.infinispan.key.model.User)1 Test (org.junit.jupiter.api.Test)1