mirror of https://github.com/apache/activemq.git
HashTest expanded to load/unload/load indexes through testing
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@632962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d8b407bb63
commit
18e1a6bfc1
|
@ -70,13 +70,19 @@ public class HashTest extends TestCase {
|
||||||
hashIndex.setPageSize(pageSize);
|
hashIndex.setPageSize(pageSize);
|
||||||
this.hashIndex.load();
|
this.hashIndex.load();
|
||||||
doInsert(keyRoot);
|
doInsert(keyRoot);
|
||||||
|
this.hashIndex.unload();
|
||||||
|
this.hashIndex.load();
|
||||||
checkRetrieve(keyRoot);
|
checkRetrieve(keyRoot);
|
||||||
doRemove(keyRoot);
|
doRemove(keyRoot);
|
||||||
|
this.hashIndex.unload();
|
||||||
|
this.hashIndex.load();
|
||||||
doInsert(keyRoot);
|
doInsert(keyRoot);
|
||||||
doRemoveHalf(keyRoot);
|
doRemoveHalf(keyRoot);
|
||||||
doInsertHalf(keyRoot);
|
doInsertHalf(keyRoot);
|
||||||
|
this.hashIndex.unload();
|
||||||
|
this.hashIndex.load();
|
||||||
checkRetrieve(keyRoot);
|
checkRetrieve(keyRoot);
|
||||||
|
this.hashIndex.unload();
|
||||||
}
|
}
|
||||||
|
|
||||||
void doInsert(String keyRoot) throws Exception {
|
void doInsert(String keyRoot) throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue