[jboss-cvs] JBossCache/tests/interop/org/jboss/cache/interop ...
Manik Surtani
msurtani at belmont.prod.atl2.jboss.com
Wed Aug 30 15:09:57 EDT 2006
User: msurtani
Date: 06/08/30 15:09:57
Modified: tests/interop/org/jboss/cache/interop InteropTest.java
Log:
removed unnenessary (IDE-generated) TODOs that were becoming noisy
refactored identity lock constructors
Revision Changes Path
1.6 +57 -60 JBossCache/tests/interop/org/jboss/cache/interop/InteropTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InteropTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/interop/org/jboss/cache/interop/InteropTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- InteropTest.java 20 Jul 2006 16:09:20 -0000 1.5
+++ InteropTest.java 30 Aug 2006 19:09:57 -0000 1.6
@@ -1,15 +1,7 @@
package org.jboss.cache.interop;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-import javax.transaction.Synchronization;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
-
+import EDU.oswego.cs.dl.util.concurrent.Latch;
import junit.framework.TestCase;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.cache.TreeCache;
@@ -17,7 +9,12 @@
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.misc.TestingUtil;
-import EDU.oswego.cs.dl.util.concurrent.Latch;
+import javax.transaction.Synchronization;
+import javax.transaction.Transaction;
+import javax.transaction.TransactionManager;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
public class InteropTest extends TestCase
{
@@ -100,7 +97,7 @@
if (caches.get(cacheID) != null)
throw new IllegalStateException(cacheID + " already created");
- TreeCache tree=new TreeCache();
+ TreeCache tree = new TreeCache();
// PropertyConfigurator config=new PropertyConfigurator();
// config.configure(tree, configFile);
XmlConfigurationParser parser = new XmlConfigurationParser();
@@ -133,12 +130,14 @@
TreeCache cache = (TreeCache) caches.get(id);
if (cache != null)
{
- try {
+ try
+ {
cache.stopService();
cache.destroyService();
caches.remove(id);
}
- catch (Exception e) {
+ catch (Exception e)
+ {
System.out.println("Exception stopping cache " + e.getMessage());
e.printStackTrace(System.out);
}
@@ -167,7 +166,6 @@
}
catch (Exception e)
{
- // TODO Auto-generated catch block
e.printStackTrace();
}
@@ -198,7 +196,6 @@
}
catch (Exception e)
{
- // TODO Auto-generated catch block
e.printStackTrace();
}
More information about the jboss-cvs-commits
mailing list