database plugin which allows datasource creation and transaction management
public class MyDaoTest extends AbstractMycilaTestNGTest {
@DataSource(driver = MysqlDriver.class, url = "", username = "",
password = "")
DataSource ds; // create a datasource in db plugin and inject it
@Test
public void test_get_dom_data_from_DB() {
}
@Test
@Transactional(readonly = true)
public void test_all_ops_execute_read_only() {
}
@Test
@Transactional(rollback = true)
public void test_modify_DB_and_rollback_after_test_completion() {
}
[...]
}
For Transactional support, I would support Spring / Warp Persist
@Transaction and i first have to modify Mycila to support test method
listeners.
Original issue reported on code.google.com by mathieu....@gmail.com on 29 Mar 2009 at 3:54
Original issue reported on code.google.com by
mathieu....@gmail.com
on 29 Mar 2009 at 3:54