This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.7.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0225920e5d54a3aa024d30b629073ba75ca1cde8 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Jan 15 18:12:57 2021 +0100 CAMEL-16032 [camel-main] autoconfiguration does not bind dataformat in the registry --- .../java/org/apache/camel/support/CustomizersTest.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/core/camel-core/src/test/java/org/apache/camel/support/CustomizersTest.java b/core/camel-core/src/test/java/org/apache/camel/support/CustomizersTest.java index 2bfd53e..b43d34b 100644 --- a/core/camel-core/src/test/java/org/apache/camel/support/CustomizersTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/support/CustomizersTest.java @@ -39,12 +39,7 @@ import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import static org.apache.camel.util.CollectionHelper.propertiesOf; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertNotEquals; -import static org.junit.jupiter.api.Assertions.assertNull; -import static org.junit.jupiter.api.Assertions.assertSame; -import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.*; public class CustomizersTest { @@ -231,8 +226,8 @@ public class CustomizersTest { "my-df-customizer", DataFormatCustomizer.forType(MyDataFormat.class, target -> target.setId(counter.incrementAndGet()))); - DataFormat df1 = context.resolveDataFormat("my-df"); - DataFormat df2 = context.resolveDataFormat("my-df"); + DataFormat df1 = context.createDataFormat("my-df"); + DataFormat df2 = context.createDataFormat("my-df"); assertNotEquals(df1, df2); @@ -257,8 +252,8 @@ public class CustomizersTest { "my-df-customizer", DataFormatCustomizer.forType(MyDataFormat.class, target -> target.setId(counter.incrementAndGet()))); - DataFormat df1 = context.resolveDataFormat("my-df"); - DataFormat df2 = context.resolveDataFormat("my-df"); + DataFormat df1 = context.createDataFormat("my-df"); + DataFormat df2 = context.createDataFormat("my-df"); assertNotEquals(df1, df2);