changeset 976:a128b58999b1

jmh-core-it: fix build failure in Parameters.
author shade
date Fri, 22 Aug 2014 13:25:24 +0400
parents 928634dbc9ec
children 962a1d288d71
files jmh-core-it/src/test/java/org/openjdk/jmh/it/parameters/Parameters.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core-it/src/test/java/org/openjdk/jmh/it/parameters/Parameters.java	Fri Aug 22 12:08:46 2014 +0400
+++ b/jmh-core-it/src/test/java/org/openjdk/jmh/it/parameters/Parameters.java	Fri Aug 22 13:25:24 2014 +0400
@@ -30,6 +30,7 @@
 import org.openjdk.jmh.runner.format.OutputFormatFactory;
 import org.openjdk.jmh.runner.options.VerboseMode;
 
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.Set;
 
@@ -37,7 +38,7 @@
 
     public static BenchmarkListEntry get(Class<?> klass) {
         BenchmarkList list = BenchmarkList.fromFile("target/test-classes" + BenchmarkList.BENCHMARK_LIST);
-        Set<BenchmarkListEntry> set = list.find(OutputFormatFactory.createFormatInstance(System.out, VerboseMode.EXTRA), ".*" + klass.getName().replaceAll("\\$",".") + ".*", Collections.<String>emptyList());
+        Set<BenchmarkListEntry> set = list.find(OutputFormatFactory.createFormatInstance(System.out, VerboseMode.EXTRA), Arrays.asList(klass.getName().replaceAll("\\$",".")), Collections.<String>emptyList());
         Assert.assertEquals("The single benchmark exists", 1, set.size());
         return set.iterator().next();
     }