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 Details

    • advanced

    • anyOrder

      Whether the expected messages should arrive in the same order or can be in any order. The option is a: boolean type. 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 a boolean type. 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: long type. Group: producer
      Parameters:
      assertPeriod - the value to set
      Returns:
      the dsl builder
    • 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 a long type. 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.String type. 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: int type. Default: -1 Group: producer
      Parameters:
      expectedCount - the value to set
      Returns:
      the dsl builder
    • 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 a int type. 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: boolean type. 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 a boolean type. 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: long type. 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 a long type. Default: 2000 Group: producer
      Parameters:
      timeout - the value to set
      Returns:
      the dsl builder