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);
this.hashIndex.load();
doInsert(keyRoot);
this.hashIndex.unload();
this.hashIndex.load();
checkRetrieve(keyRoot);
doRemove(keyRoot);
this.hashIndex.unload();
this.hashIndex.load();
doInsert(keyRoot);
doRemoveHalf(keyRoot);
doInsertHalf(keyRoot);
this.hashIndex.unload();
this.hashIndex.load();
checkRetrieve(keyRoot);
this.hashIndex.unload();
}
void doInsert(String keyRoot) throws Exception {