use of doitincloud.rdbcache.models.KvPair in project rdbcache by rdbcache.
the class KvPairsTest method getKeys.
@Test
public void getKeys() {
KvPairs pairs;
KvPair pair;
pairs = new KvPairs();
for (int i = 0; i < 10; i++) {
pairs.add(new KvPair("key" + i, "data", "value" + i));
}
List<String> keys = pairs.getKeys();
for (int i = 0; i < 10; i++) {
assertEquals("key" + i, keys.get(i));
}
}
Aggregations