This is an automated email from the ASF dual-hosted git repository.
pcongiusti 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 a08710840454 chore(components): platform http rename Test class not
containing tests
a08710840454 is described below
commit a0871084045434ed6065160a67c1542b92c676f3
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Thu Dec 18 11:33:06 2025 +0100
chore(components): platform http rename Test class not containing tests
---
.../camel/component/platform/http/DefaultPlatformHttpConsumer.java | 3 +--
.../camel/component/platform/http/AbstractPlatformHttpTest.java | 6 +++---
.../component/platform/http/JettyCustomPlatformHttpConsumer.java | 6 +++---
.../component/platform/http/JettyCustomPlatformHttpEngine.java | 6 +++---
.../http/{JettyServerTest.java => JettyEmbeddedServer.java} | 6 +++---
5 files changed, 13 insertions(+), 14 deletions(-)
diff --git
a/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/DefaultPlatformHttpConsumer.java
b/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/DefaultPlatformHttpConsumer.java
index 6644cb70939c..6c2298561b8e 100644
---
a/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/DefaultPlatformHttpConsumer.java
+++
b/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/DefaultPlatformHttpConsumer.java
@@ -20,14 +20,13 @@ import org.apache.camel.AfterPropertiesConfigured;
import org.apache.camel.Endpoint;
import org.apache.camel.Processor;
import org.apache.camel.Suspendable;
-import org.apache.camel.SuspendableService;
import org.apache.camel.component.platform.http.spi.PlatformHttpConsumer;
import org.apache.camel.component.platform.http.spi.PlatformHttpConsumerAware;
import org.apache.camel.support.DefaultConsumer;
import org.apache.camel.support.service.ServiceHelper;
public class DefaultPlatformHttpConsumer extends DefaultConsumer
- implements PlatformHttpConsumer, PlatformHttpConsumerAware,
Suspendable, SuspendableService {
+ implements PlatformHttpConsumer, PlatformHttpConsumerAware,
Suspendable {
private PlatformHttpConsumer platformHttpConsumer;
private boolean register = true;
diff --git
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/AbstractPlatformHttpTest.java
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/AbstractPlatformHttpTest.java
index 9265e4afcfc3..065ee0955626 100644
---
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/AbstractPlatformHttpTest.java
+++
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/AbstractPlatformHttpTest.java
@@ -27,7 +27,7 @@ import org.junit.jupiter.api.BeforeEach;
abstract class AbstractPlatformHttpTest {
protected static int port;
private static final Object LOCK = new Object();
- private static JettyServerTest server;
+ private static JettyEmbeddedServer server;
private static CamelContext ctx;
@BeforeEach
@@ -38,9 +38,9 @@ abstract class AbstractPlatformHttpTest {
ctx.getRegistry().bind(PlatformHttpConstants.PLATFORM_HTTP_ENGINE_FACTORY, new
JettyCustomPlatformHttpEngine());
port = AvailablePortFinder.getNextAvailable();
- server = new JettyServerTest(port);
+ server = new JettyEmbeddedServer(port);
- ctx.getRegistry().bind(JettyServerTest.JETTY_SERVER_NAME,
server);
+ ctx.getRegistry().bind(JettyEmbeddedServer.JETTY_SERVER_NAME,
server);
server.start();
ctx.addRoutes(routes());
diff --git
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java
index 7547c9f2ee42..6e00429fbbfb 100644
---
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java
+++
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java
@@ -62,10 +62,10 @@ public class JettyCustomPlatformHttpConsumer extends
DefaultConsumer implements
final PlatformHttpEndpoint endpoint = getEndpoint();
final String path = endpoint.getPath();
- JettyServerTest jettyServerTest = CamelContextHelper.mandatoryLookup(
+ JettyEmbeddedServer jettyServerTest =
CamelContextHelper.mandatoryLookup(
getEndpoint().getCamelContext(),
- JettyServerTest.JETTY_SERVER_NAME,
- JettyServerTest.class);
+ JettyEmbeddedServer.JETTY_SERVER_NAME,
+ JettyEmbeddedServer.class);
ContextHandler contextHandler = createHandler(endpoint, path);
// add handler after starting server.
diff --git
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpEngine.java
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpEngine.java
index 6e4ae9bad950..edcaedae415d 100644
---
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpEngine.java
+++
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpEngine.java
@@ -28,10 +28,10 @@ public class JettyCustomPlatformHttpEngine implements
PlatformHttpEngine {
@Override
public PlatformHttpConsumer createConsumer(PlatformHttpEndpoint
platformHttpEndpoint, Processor processor) {
if (port == 0) {
- JettyServerTest jettyServerTest =
CamelContextHelper.mandatoryLookup(
+ JettyEmbeddedServer jettyServerTest =
CamelContextHelper.mandatoryLookup(
platformHttpEndpoint.getCamelContext(),
- JettyServerTest.JETTY_SERVER_NAME,
- JettyServerTest.class);
+ JettyEmbeddedServer.JETTY_SERVER_NAME,
+ JettyEmbeddedServer.class);
port = jettyServerTest.getServerPort();
}
diff --git
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyServerTest.java
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyEmbeddedServer.java
similarity index 93%
rename from
components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyServerTest.java
rename to
components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyEmbeddedServer.java
index 159d7bb5f3ba..a5f436e5fdee 100644
---
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyServerTest.java
+++
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyEmbeddedServer.java
@@ -22,14 +22,14 @@ import
org.apache.camel.test.infra.jetty.services.JettyEmbeddedService;
import org.eclipse.jetty.server.handler.ContextHandler;
import org.eclipse.jetty.server.handler.ContextHandlerCollection;
-public class JettyServerTest {
- public static final String JETTY_SERVER_NAME = "JettyServerTest";
+public class JettyEmbeddedServer {
+ public static final String JETTY_SERVER_NAME = "JettyEmbeddedServer";
private final int port;
private final ContextHandlerCollection contextHandlerCollection;
private final JettyEmbeddedService service;
- public JettyServerTest(int port) {
+ public JettyEmbeddedServer(int port) {
contextHandlerCollection = new ContextHandlerCollection(true);
final JettyConfiguration configuration =
JettyConfigurationBuilder.bareTemplate()