ICU-12596 Re-enabled TestCollectionUtilitySpeed, but use logln instead of errln when performance rate is under the target number.

X-SVN-Rev: 39277
This commit is contained in:
Yoshito Umaoka 2016-09-19 15:39:33 +00:00
parent 0b2bbde810
commit 126f75c3bd

View File

@ -13,14 +13,12 @@ import java.util.Collection;
import java.util.Set;
import java.util.TreeSet;
import org.junit.Ignore;
import org.junit.Test;
import com.ibm.icu.dev.test.TestFmwk;
import com.ibm.icu.dev.util.CollectionUtilities;
public class TestUtilities extends TestFmwk {
@Ignore
@Test
public void TestCollectionUtilitySpeed() {
TreeSet ts1 = new TreeSet();
@ -51,7 +49,7 @@ public class TestUtilities extends TestFmwk {
if (utilityTimeSorted < standardTimeSorted*factorOfStandard) {
logln("Sorted: Utility time (" + utilityTimeSorted + ") << Standard duration (" + standardTimeSorted + "); " + 100*(utilityTimeSorted/standardTimeSorted) + "%");
} else {
errln("Sorted: Utility time (" + utilityTimeSorted + ") !<< Standard duration (" + standardTimeSorted + "); " + 100*(utilityTimeSorted/standardTimeSorted) + "%");
/*errln*/logln("Sorted: Utility time (" + utilityTimeSorted + ") !<< Standard duration (" + standardTimeSorted + "); " + 100*(utilityTimeSorted/standardTimeSorted) + "%");
}
}