Menu

#5 Allow multiple source files to form composite dataset

1.2.0
closed
None
2021-11-27
2020-02-20
No

When specifying multiple sources, they are by default creating separate datasets, which are used in separate operations, one for each source file.

In many situations, it may however make sense to split one dataset into multiple smaller, separate files. It allows composition of different datasets from smaller bits and pieces, and hence promote reuse while reducing redundancy.

The CompositeDataSet already provides all needed functionality. It just needs to be exposed via the maven plugin and the underlying ant Operation.

An example usage might look like this:

      <execution>
        <id>clean-insert-from-multiple-files</id>
        <phase>test</phase>
        <goals>
          <goal>operation</goal>
        </goals>
        <configuration>
          <type>CLEAN_INSERT</type>
          <sources>
            <source>aSourceFile.xml</source>
            <source>anotherSourceFile.xml</source>
          </sources>
          <composite>true</composite>
          <combine>true</combine>
        </configuration>
      </execution>

Discussion

  • Jeff Jensen

    Jeff Jensen - 2021-07-30
    • status: open --> pending
    • assigned_to: Jeff Jensen
     
  • Jeff Jensen

    Jeff Jensen - 2021-10-30

    Ticket moved from /p/dbunit/feature-requests/245/

    Can't be converted:

    • _priority: 5
    • _milestone: (future)
     
  • Jeff Jensen

    Jeff Jensen - 2021-11-27
    • status: pending --> closed
    • Milestone: (future) --> 1.1.0
     
  • Jeff Jensen

    Jeff Jensen - 2021-11-27

    Merged. Thank you for your work!

     
  • Jeff Jensen

    Jeff Jensen - 2021-11-27
    • Milestone: 1.1.0 --> 1.2.0
     

Log in to post a comment.

MongoDB Logo MongoDB