Reset sequence in DBUnit?
I want to reset the Database AND sequences after each test in Java+DBUnit/. I've seen this question but doesn't have the code solution I am struggling to get. How to use Oracle Sequence Numbers in DBUnit? I've found the answer, it was in the Official Documentation . It was as easy as in the dataset you are using to prepare the database, add a reset_sequences attribute with a list of the ones you want to reset. <?xml version='1.0' encoding='UTF-8'?> <dataset reset_sequences="emp_seq, dept_seq"> <emp empno="1" ename="Scott" deptno="10" job="project manager" /> .... </dataset> This solution is