Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to repeat JUnit TestCase for multiple data sets
How to repeat JUnit TestCase for multiple data sets [message #79475] Wed, 23 July 2003 17:02 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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,
Previous Topic:Can files of same package be in different jars!
Next Topic:CVS - cvsignore not working!
Goto Forum:
  


Current Time: Sat May 10 16:59:00 EDT 2025

Powered by FUDForum. Page generated in 0.02912 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top