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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git


The following commit(s) were added to refs/heads/main by this push:
     new af10729  Use a fixed class name for the test input
af10729 is described below

commit af10729a6e86a542229a8ffb56570cbb7a88ec21
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Thu Aug 29 16:42:39 2024 +0200

    Use a fixed class name for the test input
---
 .../src/test/java/org/apache/camel/itest/jmh/StringHelperTest.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/StringHelperTest.java
 
b/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/StringHelperTest.java
index b3bb2f2..cc9bc1a 100644
--- 
a/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/StringHelperTest.java
+++ 
b/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/StringHelperTest.java
@@ -37,6 +37,8 @@ public class StringHelperTest {
 
     private String nonSanitazableText = "part1SecondPartSomething";
 
+    private String className = "java. lang. String";
+
     @Test
     public void launchBenchmark() throws Exception {
         Options opt = new OptionsBuilder()
@@ -100,7 +102,7 @@ public class StringHelperTest {
     @BenchmarkMode(Mode.AverageTime)
     @OutputTimeUnit(TimeUnit.MICROSECONDS)
     public void testIsClassNamePositive(Blackhole bh) {
-        bh.consume(StringHelper.isClassName(bh.getClass().getName()));
+        bh.consume(StringHelper.isClassName(className));
     }
 
     @Benchmark

Reply via email to