This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Testing and the fly likes test suit with jUnit 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "test suit with jUnit 4" Watch "test suit with jUnit 4" New topic
Author

test suit with jUnit 4

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
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 ]

java amateur
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Miguel, it doesn't seem to be too well documented but you do it with [drum roll, please] annotations!



Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
it really works

thanks a lot!
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
@ 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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: test suit with jUnit 4
 
Similar Threads
Junit with Testsuit error
setUp and teardown not working
Add testSuites to other test suites?
Question on addTest method of Junit
Could not invoke suite() method !!