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

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Mon Jan 5 06:49:41 EST 2009


Author: manik.surtani at jboss.com
Date: 2009-01-05 06:49:39 -0500 (Mon, 05 Jan 2009)
New Revision: 7364

Modified:
   core/trunk/src/test/java/org/jboss/cache/UnitTestCacheFactory.java
Log:
Removed noise

Modified: core/trunk/src/test/java/org/jboss/cache/UnitTestCacheFactory.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/UnitTestCacheFactory.java	2009-01-05 11:06:57 UTC (rev 7363)
+++ core/trunk/src/test/java/org/jboss/cache/UnitTestCacheFactory.java	2009-01-05 11:49:39 UTC (rev 7364)
@@ -159,7 +159,7 @@
    public Cache<K, V> createCache(Configuration configuration, boolean start, Class ownerClass) throws ConfigurationException
    {
       checkCaches(ownerClass);
-      tryMCastAddress();
+//      tryMCastAddress();
 
       switch (configuration.getCacheMode())
       {
@@ -201,7 +201,8 @@
       try
       {
          MulticastSocket ms = new MulticastSocket(socketAddress);
-      } catch (IOException e)
+      }
+      catch (IOException e)
       {
          log.info("+++++++++++++++++++++++++++ Error : " + e.getMessage(), e);
       }
@@ -236,9 +237,10 @@
          {
             caches.remove(c);
             allCaches.remove(c);
-         } else if (allCaches.contains(c))
+         }
+         else if (allCaches.contains(c))
          {
-            System.err.println("[" + Thread.currentThread().getName() + "] WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Remove cache called from different thread.");
+            System.err.println("[" + Thread.currentThread().getName() + "] WARNING! Remove cache called from different thread.");
             Thread.dumpStack();
          }
       }
@@ -274,14 +276,19 @@
       if (clusterConfig == null)
       {
          if (UnitTestCacheConfigurationFactory.JGROUPS_CHANNEL.equals("udp"))
+         {
             return mangleClusterConfigurationUdp(clusterConfig);
+         }
          else
+         {
             return mangleClusterConfigurationTcp(clusterConfig);
+         }
       }
       if (clusterConfig.contains("UDP("))
       {
          clusterConfig = mangleClusterConfigurationUdp(clusterConfig);
-      } else
+      }
+      else
       {
          clusterConfig = mangleClusterConfigurationTcp(clusterConfig);
       }
@@ -311,7 +318,8 @@
       {
          String newAddr = threadMcastIP.get();
          clusterConfig = m.replaceFirst("mcast_addr=" + newAddr);
-      } else
+      }
+      else
       {
          Thread.dumpStack();
          throw new IllegalStateException();
@@ -361,7 +369,7 @@
       m = pattern.matcher(clusterConfig);
       if (m.find())
       {
-         clusterConfig = m.replaceFirst("initial_hosts=" + "127.0.0.1["+ newStartPort +"]");
+         clusterConfig = m.replaceFirst("initial_hosts=" + "127.0.0.1[" + newStartPort + "]");
       }
 
       return clusterConfig;
@@ -386,7 +394,7 @@
 
          if (cleanUp())
          {
-            System.err.print(threadId + "WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ");
+            System.err.print(threadId + "WARNING! ");
             System.err.print(threadId + " A test method in " + lastTestClass + " did not clean all cache instances properly. ");
             System.err.println(threadId + " Use UnitTestCacheFactory.cleanUp() or TestngUtil.killCaches(...) ");
          }




More information about the jbosscache-commits mailing list