]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - jars/icu4j-52_1/main/tests/core/src/com/ibm/icu/dev/test/util/ICUServiceThreadTest.java
Upgrade ICU4J.
[Dictionary.git] / jars / icu4j-52_1 / main / tests / core / src / com / ibm / icu / dev / test / util / ICUServiceThreadTest.java
similarity index 97%
rename from jars/icu4j-4_8_1_1/main/tests/core/src/com/ibm/icu/dev/test/util/ICUServiceThreadTest.java
rename to jars/icu4j-52_1/main/tests/core/src/com/ibm/icu/dev/test/util/ICUServiceThreadTest.java
index 161e08d370c55cf1930823bb05f51587fa380492..e984dca7ae06704b0db27c377ea79fbc0e95b716 100644 (file)
@@ -1,6 +1,6 @@
 /**
  *******************************************************************************
- * Copyright (C) 2001-2010, International Business Machines Corporation and    *
+ * Copyright (C) 2001-2013, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -371,6 +371,7 @@ public class ICUServiceThreadTest extends TestFmwk
             stableService = new ICULocaleService();
             registerFactories(stableService, getFactoryCollection(50));
         }
+        if (PRINTSTATS) stableService.stats();  // Enable the stats collection
         return stableService;
     }
     private ICUService stableService;
@@ -413,6 +414,7 @@ public class ICUServiceThreadTest extends TestFmwk
     // run register/unregister on a service
     public void Test03_ConcurrentRegUnreg() {
         ICUService service = new ICULocaleService();
+        if (PRINTSTATS) service.stats();    // Enable the stats collection
         for (int i = 0; i < 5; ++i) {
             new RegisterFactoryThread("[" + i + "]", service, 0, this).start();
         }
@@ -425,6 +427,7 @@ public class ICUServiceThreadTest extends TestFmwk
 
     public void Test04_WitheringService() {
         ICUService service = new ICULocaleService();
+        if (PRINTSTATS) service.stats();    // Enable the stats collection
 
         Collection fc = getFactoryCollection(50);
         registerFactories(service, fc);
@@ -452,6 +455,7 @@ public class ICUServiceThreadTest extends TestFmwk
     // run for ten seconds
     public void Test05_ConcurrentEverything() {
         ICUService service = new ICULocaleService();
+        if (PRINTSTATS) service.stats();    // Enable the stats collection
 
         new RegisterFactoryThread("", service, 500, this).start();