You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2021/12/09 10:46:26 UTC

[commons-jcs] branch master updated: Remove obsolete main() methods

This is an automated email from the ASF dual-hosted git repository.

tv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git


The following commit(s) were added to refs/heads/master by this push:
     new b313e8e  Remove obsolete main() methods
b313e8e is described below

commit b313e8e922fb177cfad44e16cd6097bb0900eb73
Author: Thomas Vandahl <tv...@apache.org>
AuthorDate: Thu Dec 9 11:25:21 2021 +0100

    Remove obsolete main() methods
---
 .../block/BlockDiskCacheConcurrentUnitTest.java    | 27 +++-------
 ...BlockDiskCacheSameRegionConcurrentUnitTest.java | 31 +++--------
 ...dexedDiskCacheConcurrentNoDeadLockUnitTest.java | 24 +--------
 .../IndexedDiskCacheConcurrentUnitTest.java        | 27 +++-------
 .../indexed/IndexedDiskCacheNoMemoryUnitTest.java  | 27 +++-------
 ...dexedDiskCacheSameRegionConcurrentUnitTest.java | 19 ++-----
 .../auxiliary/disk/indexed/LRUMapSizeVsCount.java  | 23 --------
 .../lateral/http/broadcast/LateralCacheTester.java | 61 ----------------------
 .../tcp/LateralTCPNoDeadLockConcurrentTest.java    | 11 ----
 .../jcs3/engine/EventQueueConcurrentLoadTest.java  | 16 ++----
 .../lru/LHMLRUMemoryCacheConcurrentUnitTest.java   | 29 ++++------
 .../lru/LRUMemoryCacheConcurrentUnitTest.java      | 29 ++++------
 12 files changed, 58 insertions(+), 266 deletions(-)

diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheConcurrentUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheConcurrentUnitTest.java
index 2d13165..9acfd4b 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheConcurrentUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheConcurrentUnitTest.java
@@ -1,5 +1,13 @@
 package org.apache.commons.jcs3.auxiliary.disk.block;
 
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.jcs3.JCS;
+import org.apache.commons.jcs3.access.CacheAccess;
+import org.apache.commons.jcs3.engine.behavior.ICacheElement;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -23,14 +31,6 @@ import junit.extensions.ActiveTestSuite;
 import junit.framework.Test;
 import junit.framework.TestCase;
 
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.jcs3.JCS;
-import org.apache.commons.jcs3.access.CacheAccess;
-import org.apache.commons.jcs3.engine.behavior.ICacheElement;
-
 /**
  * Test which exercises the block disk cache. This one uses three different
  * regions for three threads.
@@ -57,17 +57,6 @@ public class BlockDiskCacheConcurrentUnitTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     *
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { BlockDiskCacheConcurrentUnitTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      *
      * @return The test suite
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheSameRegionConcurrentUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheSameRegionConcurrentUnitTest.java
index af95086..3369d72 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheSameRegionConcurrentUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheSameRegionConcurrentUnitTest.java
@@ -1,5 +1,13 @@
 package org.apache.commons.jcs3.auxiliary.disk.block;
 
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.jcs3.JCS;
+import org.apache.commons.jcs3.access.CacheAccess;
+import org.apache.commons.jcs3.engine.behavior.ICacheElement;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -23,14 +31,6 @@ import junit.extensions.ActiveTestSuite;
 import junit.framework.Test;
 import junit.framework.TestCase;
 
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.jcs3.JCS;
-import org.apache.commons.jcs3.access.CacheAccess;
-import org.apache.commons.jcs3.engine.behavior.ICacheElement;
-
 /**
  * Test which exercises the block disk cache. Runs three threads against the same region.
  */
@@ -48,21 +48,6 @@ public class BlockDiskCacheSameRegionConcurrentUnitTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     * <p>
-     * @param args
-     * @throws InterruptedException
-     */
-    public static void main( final String args[] ) throws InterruptedException
-    {
-        final String[] testCaseName = { BlockDiskCacheSameRegionConcurrentUnitTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-
-        // Give test threads some time to finish
-        Thread.sleep(2000);
-    }
-
-    /**
      * A unit test suite for JUnit
      * @return The test suite
      */
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheConcurrentNoDeadLockUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheConcurrentNoDeadLockUnitTest.java
index 7c2caab..8282b47 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheConcurrentNoDeadLockUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheConcurrentNoDeadLockUnitTest.java
@@ -1,7 +1,6 @@
 package org.apache.commons.jcs3.auxiliary.disk.indexed;
 
 import org.apache.commons.jcs3.JCS;
-import org.apache.commons.jcs3.engine.control.CompositeCacheManager;
 
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
@@ -25,7 +24,6 @@ import org.apache.commons.jcs3.engine.control.CompositeCacheManager;
 import junit.extensions.ActiveTestSuite;
 import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.textui.TestRunner;
 
 /**
  * Test which exercises the indexed disk cache. Runs three threads against the
@@ -48,17 +46,6 @@ public class IndexedDiskCacheConcurrentNoDeadLockUnitTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     *
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { IndexedDiskCacheConcurrentNoDeadLockUnitTest.class.getName() };
-        TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      *
      * @return The test suite
@@ -135,15 +122,6 @@ public class IndexedDiskCacheConcurrentNoDeadLockUnitTest
     @Override
     public void tearDown()
     {
-        try
-        {
-            final CompositeCacheManager cacheMgr = CompositeCacheManager.getInstance();
-            cacheMgr.shutDown();
-        }
-        catch ( final Exception e )
-        {
-            // log.error(e);
-        }
+        JCS.shutdown();
     }
-
 }
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheConcurrentUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheConcurrentUnitTest.java
index 6d84878..974337d 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheConcurrentUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheConcurrentUnitTest.java
@@ -1,5 +1,13 @@
 package org.apache.commons.jcs3.auxiliary.disk.indexed;
 
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.jcs3.JCS;
+import org.apache.commons.jcs3.access.CacheAccess;
+import org.apache.commons.jcs3.engine.behavior.ICacheElement;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -23,14 +31,6 @@ import junit.extensions.ActiveTestSuite;
 import junit.framework.Test;
 import junit.framework.TestCase;
 
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.jcs3.JCS;
-import org.apache.commons.jcs3.access.CacheAccess;
-import org.apache.commons.jcs3.engine.behavior.ICacheElement;
-
 /**
  * Test which exercises the indexed disk cache. This one uses three different
  * regions for thre threads.
@@ -57,17 +57,6 @@ public class IndexedDiskCacheConcurrentUnitTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     *
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { IndexedDiskCacheConcurrentUnitTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      *
      * @return The test suite
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheNoMemoryUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheNoMemoryUnitTest.java
index acbbe0c..4cda36b 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheNoMemoryUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheNoMemoryUnitTest.java
@@ -1,5 +1,13 @@
 package org.apache.commons.jcs3.auxiliary.disk.indexed;
 
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.jcs3.JCS;
+import org.apache.commons.jcs3.access.CacheAccess;
+import org.apache.commons.jcs3.engine.behavior.ICacheElement;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -23,14 +31,6 @@ import junit.extensions.ActiveTestSuite;
 import junit.framework.Test;
 import junit.framework.TestCase;
 
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.jcs3.JCS;
-import org.apache.commons.jcs3.access.CacheAccess;
-import org.apache.commons.jcs3.engine.behavior.ICacheElement;
-
 /**
  * Test which exercises the indexed disk cache. This one uses three different
  * regions for thre threads. It uses a config file that specifies 0 items in
@@ -54,17 +54,6 @@ public class IndexedDiskCacheNoMemoryUnitTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     * <p>
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { IndexedDiskCacheNoMemoryUnitTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      * <p>
      * @return The test suite
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheSameRegionConcurrentUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheSameRegionConcurrentUnitTest.java
index 8ef1887..1866aef 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheSameRegionConcurrentUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/IndexedDiskCacheSameRegionConcurrentUnitTest.java
@@ -19,10 +19,6 @@ package org.apache.commons.jcs3.auxiliary.disk.indexed;
  * under the License.
  */
 
-import junit.extensions.ActiveTestSuite;
-import junit.framework.Test;
-import junit.framework.TestCase;
-
 import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
@@ -31,6 +27,10 @@ import org.apache.commons.jcs3.JCS;
 import org.apache.commons.jcs3.access.CacheAccess;
 import org.apache.commons.jcs3.engine.behavior.ICacheElement;
 
+import junit.extensions.ActiveTestSuite;
+import junit.framework.Test;
+import junit.framework.TestCase;
+
 /**
  * Test which exercises the indexed disk cache. Runs three threads against the
  * same region.
@@ -49,17 +49,6 @@ public class IndexedDiskCacheSameRegionConcurrentUnitTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     *
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { IndexedDiskCacheSameRegionConcurrentUnitTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      *
      * @return The test suite
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/LRUMapSizeVsCount.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/LRUMapSizeVsCount.java
index ef9d34c..3b6a139 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/LRUMapSizeVsCount.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/LRUMapSizeVsCount.java
@@ -21,9 +21,7 @@ package org.apache.commons.jcs3.auxiliary.disk.indexed;
 
 import java.util.Map;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
 
 /**
  * This ensures that the jcs version of the LRU map is as fast as the commons
@@ -62,16 +60,6 @@ public class LRUMapSizeVsCount
     }
 
     /**
-     * A unit test suite for JUnit
-     * <p>
-     * @return The test suite
-     */
-    public static Test suite()
-    {
-        return new TestSuite( LRUMapSizeVsCount.class );
-    }
-
-    /**
      * A unit test for JUnit
      *
      * @throws Exception
@@ -221,16 +209,5 @@ public class LRUMapSizeVsCount
         ratioPut = (minTimeSizeGet * 1.0) / minTimeCountGet;
         System.out.println( cache2Name.trim() + " puts took " + ratioPut + " times the " + cacheName.trim() + ", the goal is <" + targetGet
             + "x" );
-
     }
-
-    /**
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-    	final LRUMapSizeVsCount test = new LRUMapSizeVsCount( "command" );
-        test.doWork();
-    }
-
 }
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/http/broadcast/LateralCacheTester.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/http/broadcast/LateralCacheTester.java
deleted file mode 100644
index 1482ffa..0000000
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/http/broadcast/LateralCacheTester.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package org.apache.commons.jcs3.auxiliary.lateral.http.broadcast;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * @author Aaron Smuts
- * @version 1.0
- */
-public class LateralCacheTester
-{
-
-    //    /** Description of the Method */
-    //    public static void main( String args[] )
-    //    {
-    //
-    //        String[] servers = {"10.1.17.109", "10.1.17.108"};
-    //
-    //        try
-    //        {
-    //
-    //            //for ( int i=0; i <100; i++ ) {
-    //            String val = "test object value";
-    //            LateralCacheThread dct = new LateralCacheThread( "testTable", "testkey",
-    // val, servers );
-    //            dct.setPriority( Thread.NORM_PRIORITY - 1 );
-    //            dct.start();
-    //
-    //            String val2 = "test object value2";
-    //            LateralCacheThread dct2 = new LateralCacheThread( "testTable", "testkey",
-    // val, servers );
-    //            dct2.setPriority( Thread.NORM_PRIORITY - 1 );
-    //            dct2.start();
-    //            //}
-    //
-    //        }
-    //        catch ( Exception e )
-    //        {
-    //            System.out.println( e.toString() );
-    //        }
-    //
-    //    }
-
-}
-// end class
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPNoDeadLockConcurrentTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPNoDeadLockConcurrentTest.java
index 739a376..01be53f 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPNoDeadLockConcurrentTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPNoDeadLockConcurrentTest.java
@@ -44,17 +44,6 @@ public class LateralTCPNoDeadLockConcurrentTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     *
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { LateralTCPNoDeadLockConcurrentTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      *
      * @return The test suite
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/EventQueueConcurrentLoadTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/EventQueueConcurrentLoadTest.java
index 248fb18..de21cb4 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/EventQueueConcurrentLoadTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/EventQueueConcurrentLoadTest.java
@@ -44,13 +44,13 @@ public class EventQueueConcurrentLoadTest
     private static CacheListenerImpl<String, String> listen;
 
     /** max failure setting */
-    private final int maxFailure = 3;
+    private static final int maxFailure = 3;
 
     /** time to wait before retrying on failure. */
-    private final int waitBeforeRetry = 100;
+    private static final int waitBeforeRetry = 100;
 
     /** very small idle time */
-    private final int idleTime = 2;
+    private static final int idleTime = 2;
 
     /**
      * Constructor for the TestDiskCache object.
@@ -62,16 +62,6 @@ public class EventQueueConcurrentLoadTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { EventQueueConcurrentLoadTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      * @return The test suite
      */
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/memory/lru/LHMLRUMemoryCacheConcurrentUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/memory/lru/LHMLRUMemoryCacheConcurrentUnitTest.java
index 9673993..f6d8ebc 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/memory/lru/LHMLRUMemoryCacheConcurrentUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/memory/lru/LHMLRUMemoryCacheConcurrentUnitTest.java
@@ -1,5 +1,14 @@
 package org.apache.commons.jcs3.engine.memory.lru;
 
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.jcs3.engine.CacheElement;
+import org.apache.commons.jcs3.engine.behavior.ICacheElement;
+import org.apache.commons.jcs3.engine.control.CompositeCache;
+import org.apache.commons.jcs3.engine.control.CompositeCacheManager;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -23,15 +32,6 @@ import junit.extensions.ActiveTestSuite;
 import junit.framework.Test;
 import junit.framework.TestCase;
 
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.jcs3.engine.CacheElement;
-import org.apache.commons.jcs3.engine.behavior.ICacheElement;
-import org.apache.commons.jcs3.engine.control.CompositeCache;
-import org.apache.commons.jcs3.engine.control.CompositeCacheManager;
-
 /**
  * Test which exercises the LRUMemory cache. This one uses three different
  * regions for three threads.
@@ -56,17 +56,6 @@ public class LHMLRUMemoryCacheConcurrentUnitTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     *
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { LHMLRUMemoryCacheConcurrentUnitTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      * <p>
      * @return The test suite
diff --git a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/memory/lru/LRUMemoryCacheConcurrentUnitTest.java b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/memory/lru/LRUMemoryCacheConcurrentUnitTest.java
index d2b4cbd..534fcd0 100644
--- a/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/memory/lru/LRUMemoryCacheConcurrentUnitTest.java
+++ b/commons-jcs-core/src/test/java/org/apache/commons/jcs3/engine/memory/lru/LRUMemoryCacheConcurrentUnitTest.java
@@ -1,5 +1,14 @@
 package org.apache.commons.jcs3.engine.memory.lru;
 
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.jcs3.engine.CacheElement;
+import org.apache.commons.jcs3.engine.behavior.ICacheElement;
+import org.apache.commons.jcs3.engine.control.CompositeCache;
+import org.apache.commons.jcs3.engine.control.CompositeCacheManager;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -23,15 +32,6 @@ import junit.extensions.ActiveTestSuite;
 import junit.framework.Test;
 import junit.framework.TestCase;
 
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.jcs3.engine.CacheElement;
-import org.apache.commons.jcs3.engine.behavior.ICacheElement;
-import org.apache.commons.jcs3.engine.control.CompositeCache;
-import org.apache.commons.jcs3.engine.control.CompositeCacheManager;
-
 /**
  * Test which exercises the LRUMemory cache. This one uses three different
  * regions for three threads.
@@ -56,17 +56,6 @@ public class LRUMemoryCacheConcurrentUnitTest
     }
 
     /**
-     * Main method passes this test to the text test runner.
-     * <p>
-     * @param args
-     */
-    public static void main( final String args[] )
-    {
-        final String[] testCaseName = { LRUMemoryCacheConcurrentUnitTest.class.getName() };
-        junit.textui.TestRunner.main( testCaseName );
-    }
-
-    /**
      * A unit test suite for JUnit
      * <p>
      * @return The test suite