my dog learned polymorphism
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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: 32844

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]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Concurrent JUnit tests
It's not a secret anymore!