Author: asmuts
Date: Tue Feb 14 09:45:15 2006
New Revision: 377784

URL: http://svn.apache.org/viewcvs?rev=377784&view=rev
Log:
cleanup up the source of the remaining eclipse warnings

Modified:
    
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestLateralTCPFilterRemoveHashCode.java
    
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/RemoteCacheClientTest.java
    
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/TestRemoteCache.java

Modified: 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestLateralTCPFilterRemoveHashCode.java
URL: 
http://svn.apache.org/viewcvs/jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestLateralTCPFilterRemoveHashCode.java?rev=377784&r1=377783&r2=377784&view=diff
==============================================================================
--- 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestLateralTCPFilterRemoveHashCode.java
 (original)
+++ 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestLateralTCPFilterRemoveHashCode.java
 Tue Feb 14 09:45:15 2006
@@ -44,7 +44,7 @@
     public void test()
         throws Exception
     {
-        this.runTestForRegion( "region1", 1, 200, 1 );
+        this.runTestForRegion( "region1", 200, 1 );
     }
 
     /**
@@ -53,19 +53,18 @@
      * 
      * @param region
      *            Name of the region to access
-     * @param range
      * @param numOps
      * @param testNum
      * 
      * @exception Exception
      *                If an error occurs
      */
-    public void runTestForRegion( String region, int range, int numOps, int 
testNum )
+    public void runTestForRegion( String region, int numOps, int testNum )
         throws Exception
     {
 
         //boolean show = true;//false;
-
+       
         JCS cache = JCS.getInstance( region );
 
         Thread.sleep( 100 );
@@ -90,6 +89,8 @@
 
         Serializable dataToPassHashCodeCompare = new Serializable()
         {
+            private static final long serialVersionUID = 1L;
+
             public int hashCode()
             {
                 return 1;

Modified: 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/RemoteCacheClientTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/RemoteCacheClientTest.java?rev=377784&r1=377783&r2=377784&view=diff
==============================================================================
--- 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/RemoteCacheClientTest.java
 (original)
+++ 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/RemoteCacheClientTest.java
 Tue Feb 14 09:45:15 2006
@@ -135,6 +135,7 @@
         {
             // use already exported object; remember exception
             ee = e;
+            ee.printStackTrace();
         }
         String service = System.getProperty( REMOTE_CACHE_SERVICE_NAME );
 
@@ -190,6 +191,7 @@
                 }
                 catch ( ObjectNotFoundException onfe )
                 {
+                    // nothing
                 }
             }
         }
@@ -231,6 +233,7 @@
      * 
      * @param args
      *            The command line arguments
+     * @throws Exception 
      */
     public static void main( String[] args )
         throws Exception
@@ -262,7 +265,7 @@
                 count = Integer.parseInt( args[i] );
             }
         }
-        RemoteCacheClientTest client = new RemoteCacheClientTest( count, 
write, read, delete );
+        new RemoteCacheClientTest( count, write, read, delete );
     }
 
     /**
@@ -289,7 +292,9 @@
         return listenerId;
     }
 
-    /** Helper for output, this is an user run test class */
+    /** Helper for output, this is an user run test class 
+     * @param s
+     */
     private static void p( String s )
     {
         System.out.println( s );

Modified: 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/TestRemoteCache.java
URL: 
http://svn.apache.org/viewcvs/jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/TestRemoteCache.java?rev=377784&r1=377783&r2=377784&view=diff
==============================================================================
--- 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/TestRemoteCache.java 
(original)
+++ 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/remote/TestRemoteCache.java 
Tue Feb 14 09:45:15 2006
@@ -1,19 +1,16 @@
 package org.apache.jcs.auxiliary.remote;
 
+import junit.framework.TestCase;
+
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.jcs.JCS;
 import org.apache.jcs.auxiliary.AuxiliaryCache;
-import org.apache.jcs.auxiliary.lateral.LateralElementDescriptor;
 import org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory;
 import org.apache.jcs.engine.CacheElement;
 import org.apache.jcs.engine.behavior.ICompositeCacheManager;
-import org.apache.jcs.engine.control.CompositeCache;
-import org.apache.jcs.engine.control.CompositeCacheManager;
 import org.apache.jcs.engine.control.CompositeCacheManagerMockImpl;
 
-import junit.framework.TestCase;
-
 /**
  * @author asmuts
  */
@@ -25,7 +22,7 @@
 
     /**
      * 
-     *
+     * 
      */
     public TestRemoteCache()
     {
@@ -36,14 +33,14 @@
             RemoteUtils.createRegistry( 1101 );
 
             RemoteCacheServerFactory.startup( "localhost", 1101, 
"/TestRemoteServer.ccf" );
-            
+
         }
         catch ( Exception e )
         {
             e.printStackTrace();
         }
     }
-    
+
     /**
      * Test setup
      */
@@ -51,17 +48,18 @@
     {
         JCS.setConfigFilename( "/TestRemoteClient.ccf" );
     }
-    
+
     /**
-     * @throws Exception 
+     * @throws Exception
+     * 
      * 
-     *
      */
-    public void skiptestSimpleSend() throws Exception
+    public void skiptestSimpleSend()
+        throws Exception
     {
         log.info( "testSimpleSend" );
         System.out.println( "testSimpleSend" );
-        
+
         JCS cache = JCS.getInstance( "testCache" );
 
         log.info( "cache = " + cache );
@@ -74,26 +72,25 @@
             log.info( "put " + i );
         }
     }
-    
-    
+
     /**
      * @throws Exception
      */
-    public void testService() throws Exception 
+    public void testService()
+        throws Exception
     {
 
-
         Thread.sleep( 100 );
-        
+
         ICompositeCacheManager cacheMgr = new CompositeCacheManagerMockImpl();
-        
+
         RemoteCacheAttributes rca = new RemoteCacheAttributes();
         rca.setRemoteHost( "localhost" );
         rca.setRemotePort( 1101 );
-                
+
         RemoteCacheManager mgr = RemoteCacheManager.getInstance( rca, cacheMgr 
);
         AuxiliaryCache cache = mgr.getCache( "testCache" );
-        
+
         int numMes = 100;
         for ( int i = 0; i < numMes; i++ )
         {
@@ -103,20 +100,17 @@
             System.out.println( "put " + ce );
         }
 
-        //Thread.sleep( 2000 );
+        // Thread.sleep( 2000 );
 
         /*
-        // the receiver instance.
-        JCS cacheReceiver = JCS.getInstance( "testCache" );
-
-        log.info( "cache = " + cache );
-
-        for ( int i = 0; i < numMes; i++ )
-        {
-            System.out.println( "getting " + i );
-            Object data = cacheReceiver.get( "key" + i );
-            System.out.println( i + " = " + data );
-        }        
-        */
+         * // the receiver instance. JCS cacheReceiver = JCS.getInstance(
+         * "testCache" );
+         * 
+         * log.info( "cache = " + cache );
+         * 
+         * for ( int i = 0; i < numMes; i++ ) { System.out.println( "getting " 
+
+         * i ); Object data = cacheReceiver.get( "key" + i );
+         * System.out.println( i + " = " + data ); }
+         */
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to