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.