dbunit Questions
3
Solved
I'm wondering what's the best possible way to make DbUnit work with MySQL's JSON(B) type columns? We do have such columns here and there and whenever I am trying to feed the test data from XML file...
Pessa asked 16/10, 2018 at 22:50
9
Solved
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 ...
Cahra asked 13/10, 2010 at 16:19
6
Solved
I am using dbunit to create database backups, which can be imported and exported. My application can use several database engines: MySQL, PostgreSQL, SQLServer, H2 and Oracle.
All of the above wor...
8
Solved
I know there have been discussions wrt to dbunit here. I have read most of them but I cant seem to find a solution to my problem.
I have set up hibernate and spring. I am doing TDD so I had to wir...
2
I am using xUnit for integration testing. and for that, I use a localdb instance for it. With that being said, I would like to initiate DB instance once with some pre-defined data and of course I w...
Ajax asked 5/5, 2020 at 0:0
6
Solved
I am using DbUnit in the latest version 2.4.8 and I get many warnings in my Unit tests with this message:
WARN : org.dbunit.dataset.AbstractTableMetaData -
Potential problem found: The configured...
5
Solved
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. ...
Rumery asked 9/6, 2010 at 15:43
3
Solved
I feel that this is something I could easily figure out but I'm having a hard time finding information on how to change the log level of DBUnit. Can anyone solve this problem for me?
Multifarious asked 12/5, 2011 at 15:40
4
Solved
I'm using DBUnit to populate the database so that its content is a known content during testing.
The db schema I'm working on is in an Oracle 11g instance in which they reside other db schemas. In...
4
Solved
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 b...
Ardel asked 18/5, 2010 at 11:41
14
Solved
I was thinking of making a new, light-weight database population framework. I absolutely hate dbunit. Before I do, I want to know if someone already did it.
Things i dislike about dbunit:
1) The ...
0
So I can test code that uses a database using PHPUnit, I just installed the DbUnit extension using Composer, and I get the following message:
Package phpunit/dbunit is abandoned, you should avoi...
Xiaoximena asked 14/1, 2019 at 8:48
1
Solved
I'm writing some Unit tests for a database component. For this I use a dedicated test database (Postgresql, same as the production database) and dbUnit.
Now i would like to create an XML dump of m...
Attention asked 27/3, 2016 at 16:36
9
Solved
Before posting this I googled a bit, I looked for in dbunit-user
archives and a bit also in DbUnit bug list, but I'm not found what
looking for.
Unfortunately, answers here did not help me either.
...
Saccharometer asked 2/2, 2011 at 16:13
2
Solved
I'm getting the following error when I run my tests:
org.dbunit.dataset.NoSuchColumnException: myTable.MYFIELD - (Non-uppercase input column: myfield) in ColumnNameToIndexes cache map. Note that t...
Stephie asked 13/11, 2017 at 12:44
1
Solved
Is it possible to validate that the database has no rows for a specific table with a flat xml structure?
Something like:
<dataset>
<TABLE/>
</dataset
but that isn't working becau...
Hageman asked 20/8, 2015 at 15:0
4
Solved
I'm using DBUnit for an integration test, and before executing the test code I'm running into this error:
badges.track_types data type (2003, '_text') not recognized and will be ignored. See FAQ fo...
Rodge asked 23/6, 2016 at 11:3
2
Solved
I am using POI HSSF to read excel data and I am using JUnit to check the data against database proc RefCursor.
The Junit test fails as the numeric data from the Refcursor for example 100 are compa...
Doublebreasted asked 9/10, 2012 at 13:1
3
I am developing Unit tests for testing model functions.
I am using PHP PDO with DBUnit 1.1.2 and PHPUnit 3.6.10 and my dataset is a yml file.
I need to turn off foreign key checks while the fixt...
Apotheosis asked 28/3, 2012 at 8:54
3
Solved
I am trying to use DBUnit with plain JDBC and HSQLDB, and can't quite get it to work -- even though I've used DBUnit with Hibernate earlier with great success. Here's the code:
import java.sql.Pre...
4
Solved
I am using spring-test-dbunit and I get a warning in my Unit tests with this message:
Code:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/context.xml"})
@TestExecu...
Greff asked 26/12, 2014 at 3:58
5
Solved
I'm getting this error when I start up my application
Caused by: org.dbunit.dataset.NoSuchColumnException: CLIENT.ID - (Non-uppercase input column: ID) in ColumnNameToIndexes cache map. Note that ...
Resultant asked 5/2, 2010 at 21:8
4
Solved
I am developing a project that uses Spring Data and MongoDB to manage the persistence layer. I came across the need to populate some MongoDB collections with data that my integration and unit tests...
Cutup asked 8/1, 2014 at 18:24
1
Solved
I'm trying to use DBUnit with multiple databases loading from different configuration files (different projects).
In my Foo @Configuration file I've the following bean:
@Bean(name="dataSourceFoo...
Female asked 8/9, 2015 at 19:4
3
I have a test for a DAO class, I use DBUnit to create and populate the database (using an in-memory derby).
I am in problems when testing the dao update method because it modify the data and then t...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.