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 975997b Use the correct method in the StringHelperTest
975997b is described below
commit 975997b606cceb358a541a751c70da7179bfa629
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Aug 28 15:25:20 2024 +0200
Use the correct method in the StringHelperTest
---
.../java/org/apache/camel/itest/jmh/StringHelperTest.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
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 6f9da79..e82ebdc 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
@@ -108,7 +108,7 @@ public class StringHelperTest {
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void testDashToCamelCasePositive(Blackhole bh) {
- bh.consume(StringHelper.capitalize(dashStringToCapitalizePositive));
+
bh.consume(StringHelper.dashToCamelCase(dashStringToCapitalizePositive));
}
@@ -116,22 +116,22 @@ public class StringHelperTest {
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void testDashToCamelCaseNegative(Blackhole bh) {
- bh.consume(StringHelper.capitalize(dashStringToCapitalizeNegative));
+
bh.consume(StringHelper.dashToCamelCase(dashStringToCapitalizeNegative));
}
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
- public void testDashToCamelCasePositiveToDash(Blackhole bh) {
- bh.consume(StringHelper.capitalize(dashStringToCapitalizePositive,
true));
+ public void testDashToCamelCasePositiveSkip(Blackhole bh) {
+
bh.consume(StringHelper.dashToCamelCase(dashStringToCapitalizePositive, true));
}
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
- public void testDashToCamelCaseNegative1(Blackhole bh) {
- bh.consume(StringHelper.capitalize(dashStringToCapitalizeNegative,
true));
+ public void testDashToCamelCaseNegativeSkip(Blackhole bh) {
+
bh.consume(StringHelper.dashToCamelCase(dashStringToCapitalizeNegative, true));
}
@Benchmark