Are there any means in DbUnit to test that a date or timestamp fall within a timerange?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Are there any means in DbUnit to test that a date or timestamp fall within a timerange?

Hans Deragon

Greetings,

Are there any means in DbUnit to test that a date or timestamp fall within a timerange?

In expected CSVDataSet (and XMLDataSet) files, I would like to see the following:

ID,NAME,CREATEDTIMESTAMP
29,John,[now - 00:00:05, now]

So DbUnit, when reading this, would check if the actual CREATEDDATETIME has a timestamp that falls within the range now and 5 minutes ago. If not, the test fails.

Is there anything like this in DbUnit?

Best regards
Hans Deragon 

 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
dbunit-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dbunit-user

signature.asc (254 bytes) Download Attachment