Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 58063 invoked from network); 3 Mar 2008 07:16:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 07:16:09 -0000 Received: (qmail 75510 invoked by uid 500); 3 Mar 2008 07:16:04 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 75485 invoked by uid 500); 3 Mar 2008 07:16:04 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 75476 invoked by uid 99); 3 Mar 2008 07:16:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 23:16:04 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 07:15:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 504011A9832; Sun, 2 Mar 2008 23:15:46 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r632962 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java Date: Mon, 03 Mar 2008 07:15:45 -0000 To: commits@activemq.apache.org From: rajdavies@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080303071546.504011A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 {