Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

test suit with jUnit 4

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i read this thread, but i still have a doubt
with older jUnit, i used to write:

how do i do it with junit4?
i even dowloaded junit-addons but seems i cant work it out

TiA
[ July 26, 2006: Message edited by: miguel lisboa ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Miguel, it doesn't seem to be too well documented but you do it with [drum roll, please] annotations!

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it really works

thanks a lot!
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ anyone searching for the same as i did:

careless of me! if i had looked into junit4 test code, which came with junit4 zip, i'd find:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic