JUnit and suites

T

Tim

How does using suites make things easier than creating a bunch of
methods whose names start with "test".
Don't they all get executed that way too?
 
A

Adam Jenkins

Tim said:
How does using suites make things easier than creating a bunch of
methods whose names start with "test".
Don't they all get executed that way too?

You always create a suite, it's just that there is a default way to
create a suite, which just executes all the test* methods in a TestCase
class in the order that it encounters them. If you want to control the
order in which they're executed, or only execute some of them, or
implement any other custom way of executing the test* methods, you
create your own suite instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top