dbunit
JPA - How to truncate tables between unit tests
I want to cleanup the database after every test case without rolling back the transaction. I have tried DBUnit\'s DatabaseOperation.DELETE_ALL, but it does not work if a deletion violates a foreign ke[详细]
2023-01-20 10:23 分类:问答DBUnit dataset export by set of primary key
I tried to export a dataset from an oracle database by a set of primery keys using: TablesDependencyHelper.getDataset(connection, fullTableName ,[详细]
2023-01-20 07:49 分类:问答DbUnit - Warning: AbstractTableMetaData
I am using DbUnit in the latest version 2.4.8 and I get many warnings in my Unit tests with this message:[详细]
2023-01-20 07:08 分类:问答PHPUnit and DBUnit - getting started [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting a开发者_如何学运维nswers.[详细]
2023-01-13 06:02 分类:问答Loading datasets in consecutive tests fails with "closed session"
I have 2 test classes, both annotated with the unitils annotation @DataSet(\"/dbunit-dataset.xml\") The target database is an HSQLDB, which is initiated in an abstract superclass method annotated w[详细]
2023-01-07 02:27 分类:问答using AbstractTransactionalDataSourceSpringContextTests with Hibernate & DbUnit - inserted data not found
All, I\'m attempting to write a unit test for a Dao that uses Hibernate. I\'m also using Spring, so I\'m trying to extend AbstractTransactionalDataSourceSpringContextTests and also use DBUnit to inser[详细]
2023-01-05 13:17 分类:问答Path to XML DTD for DBUnit in multi-module Java/Maven project?
I have a multi-module maven project.Within the persist module I have a number of XML files data files that reference a DTD:[详细]
2023-01-03 14:08 分类:问答How to load DBUnit test data once per case with Spring Test
Spring Test helpfully rolls back any changes made to the database within a test method.This means that it is not necessary to take the time to delete/reload the test data before each test method.[详细]
2023-01-02 17:16 分类:问答Best way to create / drop a database before / after integration testing on a Maven/Junit/DBUnit project?
I\'ve seen some people use the maven-sql-plugin to do this.But it seems like a task that is better sui开发者_JAVA技巧ted for DBUnit....perhaps at the beginning of an entire test suite.[详细]
2023-01-02 09:59 分类:问答using spring, hibernate and scala, is there a better way to load test data than dbunit?
Here are some things I really dislike about dbunit: 1) You cannot specify the exact ordering the inserts because dbunit likes to group your inserts by table name, and not by the order you define them[详细]
2023-01-02 06:56 分类:问答