I'm using dbUnit to put test data in DB with dataset like
<dataset>
<TABLE_1 PRIMARY_KEY_COL="10000001" OTHER_COL="Some Text"/>
</dataset>
My problem is that there's on-insert trigger in db that populates child records into TABLE_2. So when I try to
DatabaseOperation.DELETE.execute();
at tearDown() it fails with java.sql.SQLException: ORA-02292: integrity constraint (TABLE_2_TABLE_1_FK) violated - child record found.
Is there any way to simulate on-delete trigger for TABLE_1 to delete child records with dbUnit and do not add trigger into DB?