Loading ...
Sorry, an error occurred while loading the content.

Re: [junit] Is it possible not to run all testX in a JUnit class?

Expand Messages
  • Meraj Khan
    In the testinfected .. article there is an example on how to run a single test statically,have a look at it. ...
    Message 1 of 2 , Mar 31, 2002
    • 0 Attachment
      In the "testinfected .." article there is an example
      on how to run a single test statically,have a look at
      it.
      --- d10n2002 <dion@...> wrote:
      > hi all,
      >
      > for example, in my JUnit test Case I have following:
      >
      > public int testAdd(int a, int b) {
      > return a + b;
      > }
      >
      > public int testSubstract(int a, int b) {
      > return a - b;
      > }
      >
      >
      > for some reasons, now I want to exclude
      > testSubstract when the
      > test class is run, I'm only interested in testing
      > testAdd.
      >
      > is this possible in JUnit? if yes, can you please
      > tell me how?
      >
      > Thank you very much in advance.
      > dion.
      > d10n2002@...
      >
      >


      __________________________________________________
      Do You Yahoo!?
      Yahoo! Greetings - send holiday greetings for Easter, Passover
      http://greetings.yahoo.com/
    Your message has been successfully submitted and would be delivered to recipients shortly.