use of jakarta.nosql.keyvalue.KeyValueEntity in project jnosql-diana by eclipse.
the class DefaultKeyValueEntityConverterTest method shouldConvertToKeyValue.
@Test
public void shouldConvertToKeyValue() {
User user = new User("nickname", "name", 24);
KeyValueEntity keyValueEntity = converter.toKeyValue(user);
assertEquals("nickname", keyValueEntity.getKey());
assertEquals(user, keyValueEntity.getValue());
}
use of jakarta.nosql.keyvalue.KeyValueEntity in project jnosql-diana-driver by eclipse.
the class DynamoDBKeyValueEntityManagerTest 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"));
}
use of jakarta.nosql.keyvalue.KeyValueEntity in project jnosql-diana-driver by eclipse.
the class CouchbaseBucketManagerTest method shouldMultiGet.
@Test
public void shouldMultiGet() {
User user = new User(KEY_OTAVIO);
KeyValueEntity keyValue = KeyValueEntity.of(KEY_OTAVIO, Value.of(user));
keyValueEntityManager.put(keyValue);
assertNotNull(keyValueEntityManager.get(KEY_OTAVIO));
}
Aggregations