Author: rajdavies
Date: Sun Mar 2 23:15:45 2008
New Revision: 632962
URL: http://svn.apache.org/viewvc?rev=632962&view=rev
Log:
HashTest expanded to load/unload/load indexes through testing
Modified:
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java
Modified:
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java
URL:
http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java?rev=632962&r1=632961&r2=632962&view=diff
==============================================================================
---
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java
(original)
+++
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java
Sun Mar 2 23:15:45 2008
@@ -70,13 +70,19 @@
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 {