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.git

commit 77516c9946f54f20e3791f710286254511026631
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Tue Apr 23 12:43:02 2024 +0200

    (chores) camel-core: code cleanup
    
    Removed unused code
---
 .../xml/AbstractCamelContextFactoryBeanTest.java   | 14 ------------
 .../management/AbstractManagedThrottlerTest.java   | 25 ----------------------
 2 files changed, 39 deletions(-)

diff --git 
a/core/camel-core-xml/src/test/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBeanTest.java
 
b/core/camel-core-xml/src/test/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBeanTest.java
index 78b003dbf64..4d2165d05fc 100644
--- 
a/core/camel-core-xml/src/test/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBeanTest.java
+++ 
b/core/camel-core-xml/src/test/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBeanTest.java
@@ -196,18 +196,4 @@ public class AbstractCamelContextFactoryBeanTest {
 
         return expectedPropertiesToBeResolved;
     }
-
-    static boolean shouldProvidePropertyPlaceholderSupport(final Method 
method) {
-        // all abstract getter methods that return String are possibly 
returning
-        // strings that contain property placeholders
-
-        final boolean isAbstract = Modifier.isAbstract(method.getModifiers());
-        final boolean isGetter = method.getName().startsWith("get");
-        final Class<?> returnType = method.getReturnType();
-
-        final boolean isCompatibleReturnType = 
String.class.isAssignableFrom(returnType);
-
-        return isAbstract && isGetter && isCompatibleReturnType;
-    }
-
 }
diff --git 
a/core/camel-management/src/test/java/org/apache/camel/management/AbstractManagedThrottlerTest.java
 
b/core/camel-management/src/test/java/org/apache/camel/management/AbstractManagedThrottlerTest.java
index be788c41761..35c907983cc 100644
--- 
a/core/camel-management/src/test/java/org/apache/camel/management/AbstractManagedThrottlerTest.java
+++ 
b/core/camel-management/src/test/java/org/apache/camel/management/AbstractManagedThrottlerTest.java
@@ -100,31 +100,6 @@ public abstract class AbstractManagedThrottlerTest extends 
ManagementTestSupport
 
     }
 
-    protected void runTestThrottleVisibleViaJmx() throws Exception {
-        // get the stats for the route
-        MBeanServer mbeanServer = getMBeanServer();
-
-        // use route to get the total time
-        ObjectName routeName = getCamelObjectName(TYPE_ROUTE, "route2");
-
-        // reset the counters
-        mbeanServer.invoke(routeName, "reset", null, null);
-
-        getMockEndpoint("mock:end").expectedMessageCount(10);
-
-        NotifyBuilder notifier = new 
NotifyBuilder(context).from("seda:throttleCount").whenReceived(5).create();
-
-        for (int i = 0; i < 10; i++) {
-            template.sendBody("seda:throttleCount", "Message " + i);
-        }
-
-        assertTrue(notifier.matches(2, TimeUnit.SECONDS));
-        assertMockEndpointsSatisfied();
-
-        Long completed = (Long) mbeanServer.getAttribute(routeName, 
"ExchangesCompleted");
-        assertEquals(10, completed.longValue());
-    }
-
     public void runTestThrottleAsyncVisibleViaJmx() throws Exception {
         // get the stats for the route
         MBeanServer mbeanServer = getMBeanServer();

Reply via email to