How to repeat JUnit TestCase for multiple data sets [message #79475] |
Wed, 23 July 2003 17:02  |
Eclipse User |
|
|
|
Is there a way of running a testcase repeatedly for a database full of
fixtures? If you have a single class for which you want to test with an
arbetrarily large number of test data sets that are maintained outside the
implementation of TestCase for that class, how would it be done?
1. How do you pass the dataset to the setup method of the TestCase
implementation?
2. Where within the JUnit framework in Eclipse would you iterate through the
fixture data, e.g., retrieve the fixture data from the data source and build
an object to pass to the TestCase implementation for each fixture?
Thanks,
--
Matt King
Accessibility End UserAdvocate
IBM Business Transformation/CIO
Phone: (719) 520-3006, Tie line: 8-656-3006
Internet: mattking@us.ibm.com
|
|
|
Re: How to repeat JUnit TestCase for multiple data sets [message #88759 is a reply to message #79475] |
Sun, 24 August 2003 16:17  |
Eclipse User |
|
|
|
Originally posted by: m_heisterberg.hotmail.com
You might want to look at the DBUnit framework - http://www.dbunit.org.
I haven't used it personally but it looks good.
lekkim
Matt King wrote:
> Is there a way of running a testcase repeatedly for a database full of
> fixtures? If you have a single class for which you want to test with an
> arbetrarily large number of test data sets that are maintained outside the
> implementation of TestCase for that class, how would it be done?
>
> 1. How do you pass the dataset to the setup method of the TestCase
> implementation?
>
> 2. Where within the JUnit framework in Eclipse would you iterate through the
> fixture data, e.g., retrieve the fixture data from the data source and build
> an object to pass to the TestCase implementation for each fixture?
>
> Thanks,
|
|
|
Powered by
FUDForum. Page generated in 0.02912 seconds