[jboss-cvs] JBossCache/tests/perf/org/jboss/cache/manualtests ...

Manik Surtani msurtani at jboss.com
Fri Feb 2 11:43:15 EST 2007


  User: msurtani
  Date: 07/02/02 11:43:15

  Modified:    tests/perf/org/jboss/cache/manualtests 
                        HashMapConcurrencyTest.java
  Log:
  converted to JUnit style test
  
  Revision  Changes    Path
  1.2       +4 -2      JBossCache/tests/perf/org/jboss/cache/manualtests/HashMapConcurrencyTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HashMapConcurrencyTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/manualtests/HashMapConcurrencyTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- HashMapConcurrencyTest.java	2 Feb 2007 16:34:23 -0000	1.1
  +++ HashMapConcurrencyTest.java	2 Feb 2007 16:43:15 -0000	1.2
  @@ -1,11 +1,13 @@
   package org.jboss.cache.manualtests;
   
  +import junit.framework.TestCase;
  +
   import java.util.HashMap;
   import java.util.Map;
   import java.util.Random;
   import java.util.concurrent.CountDownLatch;
   
  -public class HashMapConcurrencyTest
  +public class HashMapConcurrencyTest extends TestCase
   {
      private static final int T = 100;
      private static final int N = 1000;
  @@ -13,7 +15,7 @@
      private static final CountDownLatch latch = new CountDownLatch(1);
      private static final Map map = new HashMap();
   
  -   public static void main(String[] args)
  +   public void testHashMapConcurrency()
      {
         Thread[] threads = new Thread[T];
         for (int i = 0; i < T; i++)
  
  
  



More information about the jboss-cvs-commits mailing list