Look at the most voted answer for the following post
http://stackoverflow.com/questions/2856840/date-relative-to-current-in-the-dbunit-dataset
I'm imaging something like this:
@Before
public void onSetup(@DatabaseSetupRelatedAnnotation ReplacementDataSet replacementDataSet){}
@Test
@DatabaseSetup("initDataset.xml")
@ExpectedDatabase("expectedDataset.xml")
public void testXX(@ExpectedDatabaseRelatedAnnotation ReplacementDataSet replacementDataSet){}
I remember seeing BDD frameworks before like cucumber injecting values in test method arguments.
Look at the most voted answer for the following post
http://stackoverflow.com/questions/2856840/date-relative-to-current-in-the-dbunit-dataset
I'm imaging something like this:
I remember seeing BDD frameworks before like cucumber injecting values in test method arguments.