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 b54dafc CAMEL-17525: camel-stub - StubEndpoint should be lenient properties b54dafc is described below commit b54dafc3b8b5370db9c2b8cb32562adb800b3d51 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Jan 21 17:27:57 2022 +0100 CAMEL-17525: camel-stub - StubEndpoint should be lenient properties --- .../component/stub/StubEndpointUriFactory.java | 2 +- .../org/apache/camel/component/stub/stub.json | 2 +- .../camel-stub/src/main/docs/stub-component.adoc | 2 +- .../apache/camel/component/stub/StubEndpoint.java | 2 +- .../org/apache/camel/component/stub/package.html | 27 ---------------------- 5 files changed, 4 insertions(+), 31 deletions(-) diff --git a/components/camel-stub/src/generated/java/org/apache/camel/component/stub/StubEndpointUriFactory.java b/components/camel-stub/src/generated/java/org/apache/camel/component/stub/StubEndpointUriFactory.java index ee60f04..a42a6bd 100644 --- a/components/camel-stub/src/generated/java/org/apache/camel/component/stub/StubEndpointUriFactory.java +++ b/components/camel-stub/src/generated/java/org/apache/camel/component/stub/StubEndpointUriFactory.java @@ -80,7 +80,7 @@ public class StubEndpointUriFactory extends org.apache.camel.support.component.E @Override public boolean isLenientProperties() { - return false; + return true; } } diff --git a/components/camel-stub/src/generated/resources/org/apache/camel/component/stub/stub.json b/components/camel-stub/src/generated/resources/org/apache/camel/component/stub/stub.json index 2edff19..646dbfe 100644 --- a/components/camel-stub/src/generated/resources/org/apache/camel/component/stub/stub.json +++ b/components/camel-stub/src/generated/resources/org/apache/camel/component/stub/stub.json @@ -19,7 +19,7 @@ "api": false, "consumerOnly": false, "producerOnly": false, - "lenientProperties": false + "lenientProperties": true }, "componentProperties": { "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a me [...] diff --git a/components/camel-stub/src/main/docs/stub-component.adoc b/components/camel-stub/src/main/docs/stub-component.adoc index b49faaa..0ffe128 100644 --- a/components/camel-stub/src/main/docs/stub-component.adoc +++ b/components/camel-stub/src/main/docs/stub-component.adoc @@ -17,7 +17,7 @@ The Stub component provides a simple way to stub out any physical endpoints while in development or testing, allowing you for example to run a route without needing to actually connect to a specific -xref:mail-component.adoc[SMTP] or xref:mail-component.adoc[Http] endpoint. Just add *stub:* +xref:mail-component.adoc[SMTP] or xref:http-component.adoc[Http] endpoint. Just add *stub:* in front of any endpoint URI to stub out the endpoint. Internally the Stub component creates xref:vm-component.adoc[VM] endpoints. The diff --git a/components/camel-stub/src/main/java/org/apache/camel/component/stub/StubEndpoint.java b/components/camel-stub/src/main/java/org/apache/camel/component/stub/StubEndpoint.java index e382920..400db5f 100644 --- a/components/camel-stub/src/main/java/org/apache/camel/component/stub/StubEndpoint.java +++ b/components/camel-stub/src/main/java/org/apache/camel/component/stub/StubEndpoint.java @@ -37,7 +37,7 @@ import org.apache.camel.spi.UriEndpoint; * parameters to let you quickly stub out one or more endpoints in your route temporarily. */ @UriEndpoint(firstVersion = "2.10.0", scheme = "stub", title = "Stub", syntax = "stub:name", - category = { Category.CORE, Category.TESTING }) + category = { Category.CORE, Category.TESTING }, lenientProperties = true) public class StubEndpoint extends VmEndpoint { public StubEndpoint(String endpointUri, Component component, BlockingQueue<Exchange> queue) { diff --git a/components/camel-stub/src/main/java/org/apache/camel/component/stub/package.html b/components/camel-stub/src/main/java/org/apache/camel/component/stub/package.html deleted file mode 100644 index c662cf1..0000000 --- a/components/camel-stub/src/main/java/org/apache/camel/component/stub/package.html +++ /dev/null @@ -1,27 +0,0 @@ -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ---> -<html> -<head> -</head> -<body> - -The <a href="http://camel.apache.org/stub.html">Stub Component</a> which is used for stubbing endpoints. - -</body> -</html>