spring-test-dbunit Questions
9
Solved
How do I configure my Spring Boot application so that when I run unit tests it will use in-memory database such as H2/HSQL but when I run Spring Boot application it will use production database Pos...
Mcnamee asked 14/8, 2015 at 2:31
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
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
2
Solved
I've read many posts and threads about integration testing with Spring but nothing is either satisfying or helpful.
We're using Spring 3.2.3 with Hibernate, Spring Data and an Oracle database. For...
Proceed asked 10/8, 2015 at 8:23
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
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
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
Solved
As far as I understand, TestExecutionListeners act like @BeforeClass methods in JUnit. What I don't understand is why I need to use DependencyInjectionTestExecutionListener, TransactionalTestExecut...
Marna asked 8/12, 2014 at 20:52
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
1
© 2022 - 2024 — McMap. All rights reserved.