dbunit
Putting BigDecimal data into HSQLDB test database using DbUnit
I\'m using Hibernate JPA in my backend. I am writing a unit test using JUnit and DBUnit to insert a set of data into an in-memory HSQL database.[详细]
2022-12-31 22:28 分类:问答Date relative to current in the DBUnit dataset
I\'m wondering if there is any way to specify for example tomorrow as date in the DBUnit XML dataset. Sometimes code logic is different for dates in future and dates in the past and I want to test bot[详细]
2022-12-30 22:12 分类:问答How to insert line breaks dbunit dataset
How to insert line break in dbunit dataset? Like this: <user id=\"1\" story=\"first line second line[详细]
2022-12-29 22:36 分类:问答DBunit generates java.lang.ClassCastException: java.lang.String cannot be cast to oracle.sql.CLOB when trying to load a CLOB field
I am using the latest version of DBUnit (2.4.7), on Oracle 11GR2. I\'m using Java 6 (1.6.0_15) and the latest version of Oracle\'s client jar (jdbc6.jar)[详细]
2022-12-22 08:11 分类:问答DBUnit automatic dataset generation
I have seen a couple of question regarding creating datasets in DbUnit here on StackOverflow, but all of them were regarding export data from existin开发者_如何学Gog tables.[详细]
2022-12-21 19:00 分类:问答NoPrimaryKeyException from DBUnit when loading a dataset into a database
I\'m getting NoPrimaryKeyException when I try to run one of my unit tests which uses DBUnit. The datatable is created using Hibernate and is a join table between two classes mapping a many to many rel[详细]
2022-12-20 20:16 分类:问答Corrected table name message in dbunit
dbunit data has been populated with lower case table names as per schema definition. Why do you get a corrected table warning every time, I run the scripts for all databases (h2, mysql ..)[详细]
2022-12-20 12:00 分类:问答Is there a way to prevent Maven Test from rebuilding the database?
I\'ve recently been asked to, effectively, sell my department on unit testing.I can\'t tellyou how excited this makes me, but I do have one concern.We\'re using JUnit with Spring and Maven, and this m[详细]
2022-12-20 10:18 分类:问答DbUnit: problem with increment id generation
I am using DbUnit together with Unitils, which works great most of the time. Today I found a strange problem.[详细]
2022-12-19 09:56 分类:问答Spring not initializing bean(dbunit); what have I missed?
I\'m following some guidelines in a tutorial for setting up Stripes MVC with Spring integration, and I\'m trying to integrate DBUnit to initialise my DB on startup so I don\'t have to waste time manua[详细]
2022-12-18 08:09 分类:问答