[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/config ...
Manik Surtani
manik at jboss.org
Wed May 23 06:28:51 EDT 2007
User: msurtani
Date: 07/05/23 06:28:51
Modified: tests/functional/org/jboss/cache/config
ChannelInjectionTest.java
Log:
Initiated a bunch of performance fixes, including replacing CopyOnWriteArraySets with org.jboss.cache.util.concurrent.ConcurrentHashSet.
Also ran an imports optimiser on the code base - there were a lot of unused imports floating about.
Revision Changes Path
1.2 +12 -13 JBossCache/tests/functional/org/jboss/cache/config/ChannelInjectionTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ChannelInjectionTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/config/ChannelInjectionTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ChannelInjectionTest.java 9 May 2007 18:32:08 -0000 1.1
+++ ChannelInjectionTest.java 23 May 2007 10:28:51 -0000 1.2
@@ -1,22 +1,21 @@
package org.jboss.cache.config;
-import java.util.HashSet;
-import java.util.Set;
-
import junit.framework.TestCase;
-
import org.jboss.cache.Cache;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
import org.jboss.cache.misc.TestingUtil;
import org.jgroups.JChannel;
+import java.util.HashSet;
+import java.util.Set;
+
/**
* Tests that JBC prefers an injected Channel to creating one via
* a configured JChannelFactory and stack name.
*
* @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class ChannelInjectionTest extends TestCase
{
@@ -53,7 +52,7 @@
cache1.start();
cache2.start();
- TestingUtil.blockUntilViewsReceived(new Cache[] { cache1, cache2 }, 10000);
+ TestingUtil.blockUntilViewsReceived(new Cache[]{cache1, cache2}, 10000);
Fqn fqn = Fqn.fromString("/a");
cache1.put(fqn, "key", "value");
More information about the jboss-cvs-commits
mailing list