Interface DataSetTestEndpointBuilderFactory.DataSetTestEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
DataSetTestEndpointBuilderFactory
public static interface DataSetTestEndpointBuilderFactory.DataSetTestEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the DataSet Test component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()anyOrder(boolean anyOrder) Whether the expected messages should arrive in the same order or can be in any order.Whether the expected messages should arrive in the same order or can be in any order.assertPeriod(long assertPeriod) Sets a grace period after which the mock will re-assert to ensure the preliminary assertion is still valid.assertPeriod(String assertPeriod) Sets a grace period after which the mock will re-assert to ensure the preliminary assertion is still valid.The split delimiter to use when split is enabled.expectedCount(int expectedCount) Specifies the expected number of message exchanges that should be received by this mock.expectedCount(String expectedCount) Specifies the expected number of message exchanges that should be received by this mock.split(boolean split) If enabled the messages loaded from the test endpoint will be split using new line delimiters so each line is an expected message.If enabled the messages loaded from the test endpoint will be split using new line delimiters so each line is an expected message.timeout(long timeout) The timeout to use when polling for message bodies from the URI.The timeout to use when polling for message bodies from the URI.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
anyOrder
Whether the expected messages should arrive in the same order or can be in any order. The option is a:booleantype. Default: false Group: producer- Parameters:
anyOrder- the value to set- Returns:
- the dsl builder
-
anyOrder
Whether the expected messages should arrive in the same order or can be in any order. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
anyOrder- the value to set- Returns:
- the dsl builder
-
assertPeriod
default DataSetTestEndpointBuilderFactory.DataSetTestEndpointBuilder assertPeriod(long assertPeriod) Sets a grace period after which the mock will re-assert to ensure the preliminary assertion is still valid. This is used, for example, to assert that exactly a number of messages arrive. For example, if the expected count was set to 5, then the assertion is satisfied when five or more messages arrive. To ensure that exactly 5 messages arrive, then you would need to wait a little period to ensure no further message arrives. This is what you can use this method for. By default, this period is disabled. The option is a:longtype. Group: producer- Parameters:
assertPeriod- the value to set- Returns:
- the dsl builder
-
assertPeriod
default DataSetTestEndpointBuilderFactory.DataSetTestEndpointBuilder assertPeriod(String assertPeriod) Sets a grace period after which the mock will re-assert to ensure the preliminary assertion is still valid. This is used, for example, to assert that exactly a number of messages arrive. For example, if the expected count was set to 5, then the assertion is satisfied when five or more messages arrive. To ensure that exactly 5 messages arrive, then you would need to wait a little period to ensure no further message arrives. This is what you can use this method for. By default, this period is disabled. The option will be converted to alongtype. Group: producer- Parameters:
assertPeriod- the value to set- Returns:
- the dsl builder
-
delimiter
The split delimiter to use when split is enabled. By default the delimiter is new line based. The delimiter can be a regular expression. The option is a:java.lang.Stringtype. Group: producer- Parameters:
delimiter- the value to set- Returns:
- the dsl builder
-
expectedCount
default DataSetTestEndpointBuilderFactory.DataSetTestEndpointBuilder expectedCount(int expectedCount) Specifies the expected number of message exchanges that should be received by this mock. 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 assert period time to let the test run for a while to make sure there are still no messages arrived; for that use the assertPeriod option. If you want to assert that exactly nth message arrives to this mock, then see also the assertPeriod option for further details. The option is a:inttype. Default: -1 Group: producer- Parameters:
expectedCount- the value to set- Returns:
- the dsl builder
-
expectedCount
default DataSetTestEndpointBuilderFactory.DataSetTestEndpointBuilder expectedCount(String expectedCount) Specifies the expected number of message exchanges that should be received by this mock. 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 assert period time to let the test run for a while to make sure there are still no messages arrived; for that use the assertPeriod option. If you want to assert that exactly nth message arrives to this mock, then see also the assertPeriod option for further details. The option will be converted to ainttype. Default: -1 Group: producer- Parameters:
expectedCount- the value to set- Returns:
- the dsl builder
-
split
If enabled the messages loaded from the test endpoint will be split using new line delimiters so each line is an expected message. For example to use a file endpoint to load a file where each line is an expected message. The option is a:booleantype. Default: false Group: producer- Parameters:
split- the value to set- Returns:
- the dsl builder
-
split
If enabled the messages loaded from the test endpoint will be split using new line delimiters so each line is an expected message. For example to use a file endpoint to load a file where each line is an expected message. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
split- the value to set- Returns:
- the dsl builder
-
timeout
The timeout to use when polling for message bodies from the URI. The option is a:longtype. Default: 2000 Group: producer- Parameters:
timeout- the value to set- Returns:
- the dsl builder
-
timeout
The timeout to use when polling for message bodies from the URI. The option will be converted to alongtype. Default: 2000 Group: producer- Parameters:
timeout- the value to set- Returns:
- the dsl builder
-