Hi, If you retrieve the DataSource and the connection object you can create a PreparedStatement using the connection object and query the records.
Regards, Damith. On Fri, Jan 23, 2015 at 6:49 PM, Buddhima Wijeweera <buddh...@wso2.com> wrote: > Hi, > > Thank you Irham & Waruna for the quick responses. > > I would also like to know is there a way to query records in a table. > > Thanks! > > On Fri, Jan 23, 2015 at 6:15 PM, Waruna Perera <waru...@wso2.com> wrote: > >> >> https://github.com/warunap/product-esb/blob/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/mediation/db/Sample360TestCase.java >> >> On Fri, Jan 23, 2015 at 5:42 PM, Buddhima Wijeweera <buddh...@wso2.com> >> wrote: >> >>> Hi, >>> I need to write test-cases for a new feature which connects with a >>> database (H2). >>> Tests need to; >>> * Create a new table. >>> * Remove table. >>> >>> Is this possible with the Test-Framework? >>> If so, please provide a sample test-case for that. >>> >>> Thank You! >>> >>> -- >>> Buddhima Wijeweera >>> Software Engineer; WSO2 Inc.; http://wso2.com , >>> >>> Mobile: +94 71 427 9966 >>> Email: buddh...@wso2.com >>> Blog: https://buddhimawijeweera.wordpress.com >>> GitHub Profile: https://github.com/Buddhima >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Waruna Perera >> Senior Software Engineer - Test Automation >> Mobile: +94 77 3867037 >> WSO2, Inc.; http://wso2.com/ >> lean . enterprise . middlewear. >> > > > > -- > Buddhima Wijeweera > Software Engineer; WSO2 Inc.; http://wso2.com , > > Mobile: +94 71 427 9966 > Email: buddh...@wso2.com > Blog: https://buddhimawijeweera.wordpress.com > GitHub Profile: https://github.com/Buddhima > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Software Engineer WSO2 Inc.; http://wso2.com <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg> lean.enterprise.middleware mobile: *+94728671315*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev