oghenez / mycila

Automatically exported from code.google.com/p/mycila
0 stars 0 forks source link

DatabasePlugin #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 25 Apr 2009 at 3:41

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 5 May 2009 at 1:57

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 9 May 2009 at 4:52