* | | |
* DBIN(data1) DBIN(data3) DBIN(data5)
* LN LN LN LN LN LN LN
*/
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("a"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("b"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("c"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("d"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("e"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("f"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("g"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("h"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("i"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("j"),
new StringDbt("data1")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("k"),
new StringDbt("data1")));
/* Add one dup tree. */
byte[] dupKey = "b".getBytes();
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("b"),
new StringDbt("data2")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("b"),
new StringDbt("data3")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("b"),
new StringDbt("data4")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("b"),
new StringDbt("data5")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("b"),
new StringDbt("data6")));
assertEquals(OperationStatus.SUCCESS,
db.put(null, new StringDbt("b"),
new StringDbt("data7")));
/*
* Test exact matches.
*/
checkTreeUsingExistingNodes(dupKey, true);