[jbosscache-commits] JBoss Cache SVN: r5886 - core/trunk/src/test/java/org/jboss/cache/util/internals.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Fri May 23 12:41:43 EDT 2008
Author: mircea.markus
Date: 2008-05-23 12:41:43 -0400 (Fri, 23 May 2008)
New Revision: 5886
Modified:
core/trunk/src/test/java/org/jboss/cache/util/internals/EvictionController.java
Log:
JBCACHE-1338 - removed thread sleep statments
Modified: core/trunk/src/test/java/org/jboss/cache/util/internals/EvictionController.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/util/internals/EvictionController.java 2008-05-23 14:49:47 UTC (rev 5885)
+++ core/trunk/src/test/java/org/jboss/cache/util/internals/EvictionController.java 2008-05-23 16:41:43 UTC (rev 5886)
@@ -8,6 +8,7 @@
import org.jboss.cache.misc.TestingUtil;
import java.lang.reflect.Method;
+import java.lang.reflect.InvocationTargetException;
import java.util.Timer;
/**
@@ -40,11 +41,18 @@
evictionThread.cancel();
}
- public void startEviction() throws Exception
+ public void startEviction()
{
- Method method = EvictionTimerTask.class.getDeclaredMethod("processRegions", null);
- method.setAccessible(true);
- method.invoke(timerTask);
+ try
+ {
+ Method method = EvictionTimerTask.class.getDeclaredMethod("processRegions", null);
+ method.setAccessible(true);
+ method.invoke(timerTask);
+ } catch (Exception e)
+ {
+ e.printStackTrace();
+ throw new IllegalStateException(e);
+ }
}
/**
More information about the jbosscache-commits
mailing list