dbunit Questions
1
Solved
I configured my test environment via java config. At my test I need some data upfront to run it, but when i run the test with the @DatabaseSetup annotation I always get the error
Unable to load d...
Heikeheil asked 3/4, 2015 at 13:7
3
Solved
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...
1
After learning SpringBoot, I wanted go further to handle integration tests using (DBUnit and SpringTestDBUnit). Throughout the process, everything was going well until I came across setting values ...
Merry asked 26/1, 2015 at 7:3
1
I am trying to delete only those records I inserted using the @DatabaseSetup annotation.
My test looks like this:
@Test
@DatabaseSetup("classpath:data-set.xml")
@DatabaseTearDown(value={"classpat...
Croatia asked 9/12, 2014 at 10:44
2
I'm trying to use Hibernate Search in my project (writing tests right now using junit + dbunit), but searching query doesn't return any results. I worked on this yesterday and got to conclusion tha...
Medicinal asked 2/11, 2014 at 17:21
1
Solved
I'm asking and answering this question for future reference, because I think I've found a decent solution to a common problem with DbUnit. I hope it helps out someone, somewhere down the line.
I'm...
4
Solved
I am using maven and the standard directory layout. So I have added a testdata.xml file in the src/test/resources folder, and I also added it as:
.addAsWebInfResource("testdata.xml", "testdata.xml...
Abby asked 28/10, 2012 at 20:54
4
Solved
I am currently using PHPUnit and DBUnit for my project. I have a problem in DBUnit because DBUnit PHPUnit_Extensions_Database_TestCase­Src class does not seem to be truncating the existing data...
Obit asked 28/2, 2012 at 21:58
8
Solved
In one of my projects I have resources stored in /src/test/resources (typical maven directory structure). Those resources are being used by an utility class stored in the project.
The utility clas...
5
Solved
I have a multi-module maven project. Within the persist module I have a number of XML files data files that reference a DTD:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE myapp-data SY...
1
Solved
How can I used Oracle Sequences to auto-generate primary keys for my tables while exporting data into Oracle using DBUnit ?
Azikiwe asked 22/5, 2013 at 17:9
2
Solved
I'm running in to some real speed issues with PHPUnit/DBUnit. Anything that extends PHPUnit_Extensions_Database_TestCase takes forever to run. With 189 tests, the suite takes around 8-9 minutes. I ...
Flaming asked 30/4, 2012 at 15:14
1
Solved
I spent a lot of time by searching where is the problem, but i haven't find anything.
It sais "testAdd caused an ERROR: Missing argument". Simply the dataProvider isn't executed, when I run the te...
Hinrichs asked 4/7, 2013 at 6:36
2
Solved
How can we easily import/export database data which dbunit could take in the following format?
<dataset>
<tablea cola="" colb="" />
<tableb colc="" cold="" />
</dataset>
...
2
Solved
I'm attempting to set up my unit testing environment to use DbUnit.
I'm having a few problems as the tables which I am attempting to control do not have primary keys. I have been getting a org.dbu...
5
Solved
I have been looking at EasyMock and tutorials/examples around using it for Unit Testing DAO classes, for an "outside container" test. However, I think most of them talk about testing the Service La...
Akihito asked 21/3, 2012 at 15:13
1
Solved
Is there a way telling DB-Unit to ignore the order in which rows should be compared? My problem is, that I do not know in which order the rows will be written to the database, but DB-Unit forces me...
3
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)
I've been unable to successfully load any da...
3
Solved
I have recently become involved with some TDD using PHPUnit.
I have to test a database-driven app, and read about the DbUnit extension, which I was planning to research and implement over the comin...
Leadin asked 16/7, 2012 at 18:58
3
Solved
I'm setting up some test scaffolding around an existing project. This includes some integration tests, using JUnit and DbUnit. I've also set up a Jenkins installation for continuous integration.
M...
Charcuterie asked 22/5, 2012 at 16:21
2
Solved
I have the following scenario for my application:
1 Production Server
1 Test Server
n Development Computers
For database migration we use Hibernate Schema Update for the Schema and DBUnit for f...
3
Solved
In a nutshell
My command line Java application copies data from one datasource to another without using XA. I have configured two separate datasources and would like a JUnit test that can rollbac...
Minuscule asked 18/5, 2012 at 11:29
2
Solved
Here are some (overly) simplified code example to describe my unit testing method.
CompanyDataSet.xml
<dataset>
<company company_key="100" company_name="OldName" />
</dataset>
...
Revelry asked 15/5, 2012 at 9:54
2
Solved
According to the DBUnit docs link it should support using a CLEAN_INSERT when using a DatabaseSequenceFilter.
I get the following exception when attempting this
com.sybase.jdbc2.jdbc.SybSQLExcept...
Uncommunicative asked 21/11, 2011 at 16:21
2
Solved
I'm having problem trying to push changes made within a Hibernate transaction to the database for DbUnit to work properly in my test case. It seems like DbUnit is not seeing the changes made by Hib...
© 2022 - 2024 — McMap. All rights reserved.