I want to create a unit test for integration testing. What class should I inherit to be able to commit/rollback transactions? AbstractTransactionalSpringContextTests is deprecated. It's recommended to use AbstractJUnit38SpringContextTests instead, but ... |
I have abstract class that defines database methods, such as inserts and updates, and a concrete class that implements it. The database configurations (dataSource, DatabaseTarget etc) are defined as beans in ... |
I have integration test (which runs under Jetty) where I open page (by using Selenium) and check that record about this activity was added to database (HSQL). But it does not ... |
Re: Spring/Hib : Simulate a database down for test purposes. I do not think that there is a ready to use spring class for this purpose. However, if I'd like to ... |
1 war for test and production database Is it possible to externally configure database properties (via applicationContext-jdbc.xml and jdbc.properties perhaps), so that one and only one war file would on test ... |
Unit Tests - Priming the database per-test vs rolling back Hi, There was an article on the Server Side that discussed testing with Hibernate, and part of the discussion was regarding ... |
Hello spring forum, I read that AbstractTransactionalSpringContextTests is designed to support a single database. Does anybody have an idea how to make AbstractTransactionalSpringContextTests to support multiple databases? One idea could be ... |
|
Unit Tests - Can we remove reliance on Database Hi A general rather than a specific question, but any replies appreciated. We are using Spring, together with Toplink and Oracle 10g ... |
Populate testing db w/ subclass of LocalSessionFactoryBean We're unit-testing the service methods in our data-driven Spring webapp, and chose to use an in-memory HSQLDB database instead of our "normal" database in ... |
hi! I'm using spring with hibernate and so far it works fine. I define a datasource, inject it into the sessionfactory and inject the factory into my DAOs. For JUnit tests ... |
Setting up a test database Hi all I'm looking for a way to test my Spring JDBCTemplate DAOs. To be brief I'm thinking of using an in-memory Hsqldb database, and populating ... |
After a test run, I always end up with unwanted entries in the database (created by the roo generated unit tests). Is there any way to have roo clean up after ... |
Using a different database for testing I have been trying to use another database for Roo integration test. Our production database is Oracle but I want to change the test database ... |
Integration Tests: Fill test database before tests are executed I'm often writing integration tests which test against a filled database. So the database has to be filled with data before my ... |
So this might be a noob question, but I can't figure out how to generate the test classes for the generated database. I can see you add --testAutomatically to entity definitions, ... |