• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is JUnitPref ?

 
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is JUnitPref ? have anybody tried it ? how it helps ?
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JUnitPerf is an extension to JUnit. You may find it from JUnit extensions page.
From the document of JUnitPerf -
"JUnitPerf is a collection of JUnit test decorators used to measure theperformance and scalability of functionality contained within existing JUnit tests, including TimedTest, LoadTest, ThreadedTest."
[ March 14, 2002: Message edited by: Doug Wang ]
 
shailesh sonavadekar
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the intention of asking of the question was what is different in it ? why it is separetely required ?
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

the intention of asking of the question was what is different in it ? why it is separetely required ?


JUnit limits its scope to testing the functionality of a given "unit" of code. With it you can verify that your class works as expected.
JUnitPerf allows you to test the performance characteristics of your code. It extends JUnit's capabilities so that you can verify that, say, a given unit method will always take less than .25 s to run. It's test decorators are also useful for stress testing a given "unit". I once used it to verify the response times of a class which I used as an interface to a remote server. I verified that even with 10 simultaneous users, the response times never grew above a certain level.
Does this answer your question?
Cheers,
Nicholas Lesiecki
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic