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 ae994d5a237 CAMEL-18670: camel-mock/dataset - Polished docs
ae994d5a237 is described below
commit ae994d5a2371a16e9b7ca900a9327a09d2c23c88
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Oct 31 21:41:45 2022 +0100
CAMEL-18670: camel-mock/dataset - Polished docs
---
.../resources/org/apache/camel/catalog/components/dataset-test.json | 2 +-
.../resources/org/apache/camel/catalog/components/dataset.json | 2 +-
.../generated/resources/org/apache/camel/catalog/components/mock.json | 2 +-
.../resources/org/apache/camel/component/dataset/dataset-test.json | 2 +-
.../generated/resources/org/apache/camel/component/dataset/dataset.json | 2 +-
.../src/generated/resources/org/apache/camel/component/mock/mock.json | 2 +-
.../src/main/java/org/apache/camel/component/mock/MockEndpoint.java | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataset-test.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataset-test.json
index 494419cfff9..b4856df6458 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataset-test.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataset-test.json
@@ -30,7 +30,7 @@
"properties": {
"name": { "kind": "path", "displayName": "Name", "group": "producer",
"label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Name of endpoint to lookup in the
registry to use for polling messages used for testing" },
"anyOrder": { "kind": "parameter", "displayName": "Any Order", "group":
"producer", "label": "", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the expected messages should
arrive in the same order or can be in any order." },
- "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expectedMessageCount(int) was se [...]
+ "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expected count was set to 5, the [...]
"delimiter": { "kind": "parameter", "displayName": "Delimiter", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The split delimiter to use when split is enabled. By default
the delimiter is new line based. The delimiter can be a regular expression." },
"expectedCount": { "kind": "parameter", "displayName": "Expected Count",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": -1, "description": "Specifies the expected number of message
exchanges that should be received by this endpoint. Beware: If you want to
expect that 0 messages, then take extra care, as 0 matches when the tests
starts, so you need to set a ass [...]
"failFast": { "kind": "parameter", "displayName": "Fail Fast", "group":
"producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Sets whether assertIsSatisfied()
should fail fast at the first detected failed expectation while it may
otherwise wait for all expected messages to arrive before performing
expectations verifications. Is by default true. Set [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataset.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataset.json
index e7eb7025cf7..2ca9d34f8bd 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataset.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dataset.json
@@ -41,7 +41,7 @@
"bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error
Handler", "group": "consumer (advanced)", "label": "consumer,advanced",
"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 [...]
"exceptionHandler": { "kind": "parameter", "displayName": "Exception
Handler", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By default the
con [...]
"exchangePattern": { "kind": "parameter", "displayName": "Exchange
Pattern", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut",
"InOptionalOut" ], "deprecated": false, "autowired": false, "secret": false,
"description": "Sets the exchange pattern when the consumer creates an
exchange." },
- "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expectedMessageCount(int) was se [...]
+ "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expected count was set to 5, the [...]
"consumeDelay": { "kind": "parameter", "displayName": "Consume Delay",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "0", "description": "Allows a delay to be
specified which causes a delay when a message is consumed by the producer (to
simulate slow processing)" },
"expectedCount": { "kind": "parameter", "displayName": "Expected Count",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": -1, "description": "Specifies the expected number of message
exchanges that should be received by this endpoint. Beware: If you want to
expect that 0 messages, then take extra care, as 0 matches when the tests
starts, so you need to set a ass [...]
"failFast": { "kind": "parameter", "displayName": "Fail Fast", "group":
"producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Sets whether assertIsSatisfied()
should fail fast at the first detected failed expectation while it may
otherwise wait for all expected messages to arrive before performing
expectations verifications. Is by default true. Set [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mock.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mock.json
index 76e8476c6cd..62bd9e99846 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mock.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mock.json
@@ -29,7 +29,7 @@
},
"properties": {
"name": { "kind": "path", "displayName": "Name", "group": "producer",
"label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Name of mock endpoint" },
- "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expectedMessageCount(int) was se [...]
+ "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expected count was set to 5, the [...]
"expectedCount": { "kind": "parameter", "displayName": "Expected Count",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": -1, "description": "Specifies the expected number of message
exchanges that should be received by this endpoint. Beware: If you want to
expect that 0 messages, then take extra care, as 0 matches when the tests
starts, so you need to set a ass [...]
"failFast": { "kind": "parameter", "displayName": "Fail Fast", "group":
"producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Sets whether assertIsSatisfied()
should fail fast at the first detected failed expectation while it may
otherwise wait for all expected messages to arrive before performing
expectations verifications. Is by default true. Set [...]
"log": { "kind": "parameter", "displayName": "Log", "group": "producer",
"label": "producer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "To turn on logging when the mock
receives an incoming message. This will log only one time at INFO level for the
incoming message. For more detailed logging then set the logger to DEBUG level
for the org.apache.camel.component.mock.Mock [...]
diff --git
a/components/camel-dataset/src/generated/resources/org/apache/camel/component/dataset/dataset-test.json
b/components/camel-dataset/src/generated/resources/org/apache/camel/component/dataset/dataset-test.json
index 494419cfff9..b4856df6458 100644
---
a/components/camel-dataset/src/generated/resources/org/apache/camel/component/dataset/dataset-test.json
+++
b/components/camel-dataset/src/generated/resources/org/apache/camel/component/dataset/dataset-test.json
@@ -30,7 +30,7 @@
"properties": {
"name": { "kind": "path", "displayName": "Name", "group": "producer",
"label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Name of endpoint to lookup in the
registry to use for polling messages used for testing" },
"anyOrder": { "kind": "parameter", "displayName": "Any Order", "group":
"producer", "label": "", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the expected messages should
arrive in the same order or can be in any order." },
- "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expectedMessageCount(int) was se [...]
+ "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expected count was set to 5, the [...]
"delimiter": { "kind": "parameter", "displayName": "Delimiter", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The split delimiter to use when split is enabled. By default
the delimiter is new line based. The delimiter can be a regular expression." },
"expectedCount": { "kind": "parameter", "displayName": "Expected Count",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": -1, "description": "Specifies the expected number of message
exchanges that should be received by this endpoint. Beware: If you want to
expect that 0 messages, then take extra care, as 0 matches when the tests
starts, so you need to set a ass [...]
"failFast": { "kind": "parameter", "displayName": "Fail Fast", "group":
"producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Sets whether assertIsSatisfied()
should fail fast at the first detected failed expectation while it may
otherwise wait for all expected messages to arrive before performing
expectations verifications. Is by default true. Set [...]
diff --git
a/components/camel-dataset/src/generated/resources/org/apache/camel/component/dataset/dataset.json
b/components/camel-dataset/src/generated/resources/org/apache/camel/component/dataset/dataset.json
index e7eb7025cf7..2ca9d34f8bd 100644
---
a/components/camel-dataset/src/generated/resources/org/apache/camel/component/dataset/dataset.json
+++
b/components/camel-dataset/src/generated/resources/org/apache/camel/component/dataset/dataset.json
@@ -41,7 +41,7 @@
"bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error
Handler", "group": "consumer (advanced)", "label": "consumer,advanced",
"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 [...]
"exceptionHandler": { "kind": "parameter", "displayName": "Exception
Handler", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By default the
con [...]
"exchangePattern": { "kind": "parameter", "displayName": "Exchange
Pattern", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut",
"InOptionalOut" ], "deprecated": false, "autowired": false, "secret": false,
"description": "Sets the exchange pattern when the consumer creates an
exchange." },
- "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expectedMessageCount(int) was se [...]
+ "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expected count was set to 5, the [...]
"consumeDelay": { "kind": "parameter", "displayName": "Consume Delay",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "0", "description": "Allows a delay to be
specified which causes a delay when a message is consumed by the producer (to
simulate slow processing)" },
"expectedCount": { "kind": "parameter", "displayName": "Expected Count",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": -1, "description": "Specifies the expected number of message
exchanges that should be received by this endpoint. Beware: If you want to
expect that 0 messages, then take extra care, as 0 matches when the tests
starts, so you need to set a ass [...]
"failFast": { "kind": "parameter", "displayName": "Fail Fast", "group":
"producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Sets whether assertIsSatisfied()
should fail fast at the first detected failed expectation while it may
otherwise wait for all expected messages to arrive before performing
expectations verifications. Is by default true. Set [...]
diff --git
a/components/camel-mock/src/generated/resources/org/apache/camel/component/mock/mock.json
b/components/camel-mock/src/generated/resources/org/apache/camel/component/mock/mock.json
index 76e8476c6cd..62bd9e99846 100644
---
a/components/camel-mock/src/generated/resources/org/apache/camel/component/mock/mock.json
+++
b/components/camel-mock/src/generated/resources/org/apache/camel/component/mock/mock.json
@@ -29,7 +29,7 @@
},
"properties": {
"name": { "kind": "path", "displayName": "Name", "group": "producer",
"label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Name of mock endpoint" },
- "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expectedMessageCount(int) was se [...]
+ "assertPeriod": { "kind": "parameter", "displayName": "Assert Period",
"group": "producer", "label": "producer", "required": false, "type":
"duration", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "description": "Sets a grace period after which the mock
endpoint will re-assert to ensure the preliminary assertion is still valid.
This is used for example to assert that exactly a number of messages arrives.
For example if expected count was set to 5, the [...]
"expectedCount": { "kind": "parameter", "displayName": "Expected Count",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": -1, "description": "Specifies the expected number of message
exchanges that should be received by this endpoint. Beware: If you want to
expect that 0 messages, then take extra care, as 0 matches when the tests
starts, so you need to set a ass [...]
"failFast": { "kind": "parameter", "displayName": "Fail Fast", "group":
"producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Sets whether assertIsSatisfied()
should fail fast at the first detected failed expectation while it may
otherwise wait for all expected messages to arrive before performing
expectations verifications. Is by default true. Set [...]
"log": { "kind": "parameter", "displayName": "Log", "group": "producer",
"label": "producer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "To turn on logging when the mock
receives an incoming message. This will log only one time at INFO level for the
incoming message. For more detailed logging then set the logger to DEBUG level
for the org.apache.camel.component.mock.Mock [...]
diff --git
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
index b3a52da31de..efb93bdca85 100644
---
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
+++
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
@@ -548,7 +548,7 @@ public class MockEndpoint extends DefaultEndpoint
implements BrowsableEndpoint,
* valid.
* <p/>
* This is used for example to assert that <b>exactly</b> a number of
messages arrives. For example if
- * {@link #expectedMessageCount(int)} was set to 5, then the assertion is
satisfied when 5 or more message arrives.
+ * expected count was set to 5, then the assertion is satisfied when 5 or
more message arrives.
* To ensure that exactly 5 messages arrives, then you would need to wait
a little period to ensure no further
* message arrives. This is what you can use this method for.
* <p/>