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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 92f986ac310 Fixed test
92f986ac310 is described below

commit 92f986ac310dc1945eef96a03459c0e2291f2d37
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Apr 16 09:48:31 2023 +0200

    Fixed test
---
 .../org/apache/camel/component/metrics/MetricsComponentTest.java     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/MetricsComponentTest.java
 
b/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/MetricsComponentTest.java
index fa9b25d568a..2adc76e78a9 100644
--- 
a/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/MetricsComponentTest.java
+++ 
b/components/camel-metrics/src/test/java/org/apache/camel/component/metrics/MetricsComponentTest.java
@@ -27,7 +27,6 @@ import org.apache.camel.Endpoint;
 import org.apache.camel.ExtendedCamelContext;
 import org.apache.camel.RuntimeCamelException;
 import org.apache.camel.impl.engine.DefaultBeanIntrospection;
-import org.apache.camel.spi.ConfigurerResolver;
 import org.apache.camel.spi.Registry;
 import org.apache.camel.support.PluginHelper;
 import org.junit.jupiter.api.BeforeEach;
@@ -83,7 +82,7 @@ public class MetricsComponentTest {
                 .thenReturn(metricRegistry);
         when(camelContext.getCamelContextExtension()).thenReturn(ecc);
         when(PluginHelper.getBeanIntrospection(ecc)).thenReturn(new 
DefaultBeanIntrospection());
-        when(ecc.getContextPlugin(ConfigurerResolver.class)).thenReturn((name, 
context) -> null);
+        when(PluginHelper.getConfigurerResolver(ecc)).thenReturn((name, 
context) -> null);
 
         Map<String, Object> params = new HashMap<>();
         Long value = System.currentTimeMillis();
@@ -112,7 +111,7 @@ public class MetricsComponentTest {
                 .thenReturn(metricRegistry);
         when(camelContext.getCamelContextExtension()).thenReturn(ecc);
         when(PluginHelper.getBeanIntrospection(ecc)).thenReturn(new 
DefaultBeanIntrospection());
-        when(ecc.getContextPlugin(ConfigurerResolver.class)).thenReturn((name, 
context) -> null);
+        when(PluginHelper.getConfigurerResolver(ecc)).thenReturn((name, 
context) -> null);
 
         Map<String, Object> params = new HashMap<>();
         long value = System.currentTimeMillis();

Reply via email to