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:
Robert Davies 2008-03-03 07:15:45 +00:00
parent d8b407bb63
commit 18e1a6bfc1
1 changed files with 7 additions and 1 deletions

View File

@ -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 {