• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Junit life cycle

 
Ray Kumar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

What is the life cycle of Junit testing ?

Thanks in advance
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about the lifecycle of the JUnit TestCase objects or the lifecycle of how you write and run unit tests?
 
Ray Kumar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean, Testcase life cycle. Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ray,
For each test method in a test case, the setUp() method is called, followed by the test itself, followed by the tearDown() method. If you have multiple tests in a test suite, all of the tests are run using the method described in the previous sentence.

For more details, see the cook's tour article.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic