Skip to content

Allow specifying dataSetLoader in @DtabaseSetup/@ExpectedDatabase/@DatabaseTearDown #162

@pavel-kalmykov

Description

@pavel-kalmykov

All of my datasets use the FlatXmlDataSet format, but now I need to compare some HTML strings. To achieve that, I need to use the XmlDataSet format so I can wrap my expected HTML into a CDATA tag (because writing it in an attribute using the FlatXmlDataSet format is impossible due to XML limitations).

Currently, I can set up @DbUnitConfiguration(dataSetLoader = XmlDataSetLoader.class), but that would mean I would need to rewrite all of my already created datasets (or at least the ones I created for the class).

Is there any possibility to set a dataSetLoader atomically to a specific dataset to load (@DatabaseSetup, @ExpectedDatabase, @DatabaseTearDown)? It would be very useful.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions