Example #1
0
 @Test
 public void testStat() {
   db.put(new byte[] {1}, new byte[] {1});
   db.put(new byte[] {2}, new byte[] {1});
   Stat stat = db.stat();
   System.out.println(stat);
   assertThat(stat.getEntries(), is(2L));
   assertThat(stat.getPsize(), is(not(0L)));
   assertThat(stat.getOverflowPages(), is(0L));
   assertThat(stat.getDepth(), is(1L));
   assertThat(stat.getLeafPages(), is(1L));
 }