Commit 4061f61
Migrate test classes from createService() to createSingletonService()
Switch 39 test files from using createService() (non-singleton) to
createSingletonService() (singleton) to allow sharing a single
container instance per JVM. This reduces Docker overhead and enables
safe within-JVM parallel test execution.
Migrated base/support classes (covering all subclasses):
- HazelcastAggregationRepositoryCamelTestSupport
- MinioIntegrationTestSupport, SolrTestSupport
- HashicorpVaultBase, PubsubTestSupport, XmppBaseIT
- LdifTestSupport, DoclingITestSupport
- IggyTestBase, TensorFlowServingITSupport, KServeITSupport
Skipped (not safe for singleton):
- ZooKeeper: cross-module container name collision
- Consul: ConsulHealthIT creates own container in same module
- NATS: NatsAuth*ITSupport creates auth-variant containers
- Mosquitto/MQTT5: reconnect stop/start test
- RabbitMQ: conflicting exchange/queue declarations
- LRA: shared coordinator causes test transaction interference
Also added createSingletonService() to the spring-rabbitmq
RabbitMQServiceFactory wrapper.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 02f64f5 commit 4061f61
File tree
39 files changed
+42
-38
lines changed- components
- camel-ai
- camel-docling/src/test/java/org/apache/camel/component/docling/integration
- camel-kserve/src/test/java/org/apache/camel/component/kserve/it
- camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/integration
- camel-openai/src/test/java/org/apache/camel/component/openai/integration
- camel-tensorflow-serving/src/test/java/org/apache/camel/component/torchserve/it
- camel-azure
- camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration
- camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/integration
- camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub
- camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration
- operations
- camel-hazelcast/src/test/java/org/apache/camel
- component/hazelcast
- policy
- processor
- aggregate/hazelcast
- idempotent/hazelcast
- camel-iggy/src/test/java/org/apache/camel/component/iggy
- camel-jms/src/test/java/org/apache/camel/component/jms
- issues
- camel-keycloak/src/test/java/org/apache/camel/component/keycloak
- security
- camel-ldif/src/test/java/org/apache/camel/component/ldif
- camel-minio/src/test/java/org/apache/camel/component/minio/integration
- camel-pqc/src/test/java/org/apache/camel/component/pqc
- camel-redis/src/test/java/org/apache/camel/component/redis/processor/aggregate/integration
- camel-solr/src/test/java/org/apache/camel/component/solr/integration
- camel-spring-parent
- camel-spring-ai/camel-spring-ai-chat/src/test/java/org/apache/camel/component/springai/chat
- camel-spring-rabbitmq/src/test/java/org/apache/camel/component/springrabbit/test/infra/services
- camel-spring-redis/src/test/java/org/apache/camel/component/redis/integration
- camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration
39 files changed
+42
-38
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments