[jboss-cvs] JBossAS SVN: r81216 - projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 18 06:36:00 EST 2008


Author: alesj
Date: 2008-11-18 06:35:58 -0500 (Tue, 18 Nov 2008)
New Revision: 81216

Added:
   projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/IterableTimedCacheTestCase.java
Modified:
   projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/VFSAllTestSuite.java
Log:
Add Iterable timed vfs cache test.

Copied: projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/IterableTimedCacheTestCase.java (from rev 81168, projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/TimedCacheTestCase.java)
===================================================================
--- projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/IterableTimedCacheTestCase.java	                        (rev 0)
+++ projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/IterableTimedCacheTestCase.java	2008-11-18 11:35:58 UTC (rev 81216)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.virtual.test;
+
+import junit.framework.Test;
+import org.jboss.virtual.plugins.cache.IterableTimedVFSCache;
+import org.jboss.virtual.spi.cache.VFSCache;
+
+/**
+ * Iterable timed VFSCache Test.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class IterableTimedCacheTestCase extends TimedCacheTestCase
+{
+   public IterableTimedCacheTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static Test suite()
+   {
+      return suite(IterableTimedCacheTestCase.class);
+   }
+
+   protected VFSCache createCache()
+   {
+      return new IterableTimedVFSCache(5);
+   }
+}
\ No newline at end of file

Modified: projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/VFSAllTestSuite.java
===================================================================
--- projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/VFSAllTestSuite.java	2008-11-18 11:29:31 UTC (rev 81215)
+++ projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/VFSAllTestSuite.java	2008-11-18 11:35:58 UTC (rev 81216)
@@ -89,6 +89,7 @@
       // cache
       suite.addTest(LRUCacheTestCase.suite());
       suite.addTest(TimedCacheTestCase.suite());
+      suite.addTest(IterableTimedCacheTestCase.suite());
       suite.addTest(SoftRefCacheTestCase.suite());
       suite.addTest(WeakRefCacheTestCase.suite());
       // exception handler




More information about the jboss-cvs-commits mailing list