aspose file tools
The moose likes Testing and the fly likes Concurrent JUnit tests Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Concurrent JUnit tests" Watch "Concurrent JUnit tests" New topic

Concurrent JUnit tests

Alec Swan
Ranch Hand

Joined: Feb 03, 2005
Posts: 39

I have a JUnit test case, which I need to run concurrently multiple times and verify some post-conditions once all concurrent test cases are completed. Note that each test case instance must make a setUp() and tearDown() calls. In other words I do not want to spawn threads in the test method itself.

1. Does JUnit 3.x have this functionality built in?
2. Are there third-party libraries besides JUnitPerf and Groboutils which can do this?


Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31404

1) No, it is not built in,
2) What limitations in JUnitPerf and GroboUtils are you trying to avoid?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: Concurrent JUnit tests