marcphilipp / dbunit-datasetbuilder

DataSetBuilder allows to dynamically create a DBUnit IDataSet from Java code
GNU Lesser General Public License v3.0
33 stars 10 forks source link

builder.addDataSet(IDataSet dataSet) #3

Closed mab closed 10 years ago

mab commented 10 years ago

Hello,

I think builder.addDataSet(IDataSet dataSet) would be a nice method. I have some tests where this would help.

Yours, Matthias.

mab commented 10 years ago

Currently I get not through the company proxy, so I'll post a pull request tonight.

public void add(final IDataSet dataSet) throws DataSetException {
    final IDataSet[] dataSets = { build(), dataSet };
    final CompositeDataSet composite = new CompositeDataSet(dataSets);
    this.dataSet = new CachedDataSet(composite);
    consumer = new BufferedConsumer(this.dataSet);
}
marcphilipp commented 10 years ago

Looks like a good feature to add. Before submitting a pull request, please remove those final modifiers.

mab commented 10 years ago

Ok. They come with my autosave actions. I'll change that.

mab commented 10 years ago

See #4