Questions tagged [unitils]

Unitils is an framework that makes unit testing with JUnit and DbUnit smoother and more pleasant. It offers lenient comparison, generation of xsd schemas from database tables, and most important, enhances DbUnit shortcomings.

Unitils is an open source library that makes unit and integration testing with JUnit smoother and more pleasant.

It supports different aspects of testing with different modules:

  • Reflection asserts
  • Mocking
  • Injection
  • IO
  • Database testing support for DbUnit
  • Hibernate support
  • Spring support
  • EasyMock support
54 questions
0
votes
2 answers

Unitils with Hibernate4

I'm trying to upgrade an Struts/Spring application from Hibernate 3.1 to Hibernate 4.3. I'm using Untils for my database tests, and under Hibernate 3.1, the tests were working correctly. Under Hibernate 4.3, the tests are failing with the following…
Brian Hoover
  • 7,861
  • 2
  • 28
  • 41
0
votes
2 answers

Maven- Pom.xml properties not recognized in unitils configuration File

I included my database configuration in pom.xml file in order to use them for my project testing ,I'm using unitils for database integration My pom.xml properties are …
0
votes
1 answer

Spring xml initializes beans when declared in child class but if the same is declared in parent class bean initialization fails

There are lot of Unitils based integration test classes in my application which uses @SpringApplicationContext (with different spring xmls from different modules) . In order to reduce the number of spring contexts being created, we planned to create…
EmeraldTablet
  • 812
  • 3
  • 12
  • 30
0
votes
1 answer

Unitils @SpringApplicationContext - how to find time taken to initialize spring context?

I am using unitils for testing. I see more than 90 spring context refresh messages in the failsafe test reports. I need to know how much time is taken to initialize these spring contexts. Unitils does not have proper logging, so not able to track…
EmeraldTablet
  • 812
  • 3
  • 12
  • 30
0
votes
1 answer

Unitils @DataSet annotation

I have a theoretical question this time. Where is unitils @Dataset annotation processed? Every annotation must have a prosessor class, see http://www.javacodegeeks.com/2012/08/java-annotations-explored-explained.html Does this happen in…
mjgirl
  • 1,214
  • 7
  • 24
  • 42
0
votes
1 answer

insert empty date on unitils dataset

I got error similar to this: Unitils dataset - insert into sybase datetime column My case is that need to insert a date value that is empty. Empty String does not do the thing. Can anyone help me?
mjgirl
  • 1,214
  • 7
  • 24
  • 42
0
votes
2 answers

Integration Test Strategy for Create methods

I want to test if created entity has been correctly persisted to database.There is a service integration test for create method: @SpringApplicationContext({"setting ...."}) public class PersonServiceIntegrationTest extends UnitilsJUnit4 { …
tomascejka
  • 13
  • 6
0
votes
1 answer

Does debugging require table locks?

I guess I need someone with extensive knowledge to solve my current problem: I use Eclipse to debug jUnit-tests that use Unitils. While debugging, some or all of the tables in my database are locked, even though they are not accessed at the…
Thomas
  • 624
  • 11
  • 28
0
votes
2 answers

How to mock static methods using UnitilsJUnit4?

I have method getAllCustomers inside CustomerService class. Inside this method I call another static method from CustomerDao class. Now when I am writing the junit for method getAllCustomers inside customerService class, where I want to mock the…
emilly
  • 10,060
  • 33
  • 97
  • 172
1 2 3
4