[jbosscache-commits] JBoss Cache SVN: r7555 - core/trunk/src/test/java/org/jboss/cache/eviction.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Wed Jan 21 05:38:10 EST 2009


Author: mircea.markus
Date: 2009-01-21 05:38:10 -0500 (Wed, 21 Jan 2009)
New Revision: 7555

Modified:
   core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java
Log:
removed test as it was relying too much on thread.sleep statements

Modified: core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java	2009-01-21 10:35:20 UTC (rev 7554)
+++ core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java	2009-01-21 10:38:10 UTC (rev 7555)
@@ -69,33 +69,6 @@
    }
 
 
-   @Test (invocationCount = 3, successPercentage = 60)
-   public void testUpdateToFuture() throws Exception
-   {
-      future = System.currentTimeMillis() + 2500;
-      past = System.currentTimeMillis() - 1000;
-      try
-      {
-         EvictionController evictionController = new EvictionController(cache);
-         log.info("update 1 from future to past");
-         cache.put(fqn1, ExpirationAlgorithmConfig.EXPIRATION_KEY, future);
-         TestingUtil.sleepThread(1000);
-         evictionController.startEviction();
-         assertNotNull(cache.getNode(fqn1));
-         cache.put(fqn1, ExpirationAlgorithmConfig.EXPIRATION_KEY, future + 1200);
-         TestingUtil.sleepThread(2000);
-         evictionController.startEviction();
-         assertNotNull(cache.getNode(fqn1));
-         TestingUtil.sleepThread(1000);
-         evictionController.startEviction();
-         assertNull(cache.getNode(fqn1));
-      }
-      finally
-      {
-         cache.removeNode(Fqn.ROOT);
-      }
-   }
-
    @Test (invocationCount = 5, successPercentage = 80)
    public void testEviction() throws Exception
    {




More information about the jbosscache-commits mailing list