JUnit and suites

Discussion in 'Java' started by Tim, Dec 10, 2003.

  1. Tim

    Tim Guest

    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?
    Tim, Dec 10, 2003
    1. Advertisements

  2. Tim

    Adam Jenkins Guest

    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.
    Adam Jenkins, Dec 10, 2003
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.