Class ListDataSet

  • All Implemented Interfaces:
    DataSet
    Direct Known Subclasses:
    FileDataSet

    public class ListDataSet
    extends DataSetSupport
    A DataSet that allows a list of static payloads to be used to create each message exchange along with using a pluggable transformer to customize the messages.
    • Constructor Detail

      • ListDataSet

        public ListDataSet()
      • ListDataSet

        public ListDataSet​(List<Object> defaultBodies)
    • Method Detail

      • getDefaultBodies

        public List<Object> getDefaultBodies()
      • setDefaultBodies

        public void setDefaultBodies​(List<Object> defaultBodies)
      • createMessageBody

        protected Object createMessageBody​(long messageIndex)
        Creates the message body for a given message. If the messageIndex is greater than the size of the list, use the modulus.
        Specified by:
        createMessageBody in class DataSetSupport