Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I know what unit testing is in general and what JUnit is in particular. But here I see that there is a project called JUnitEE which seems to me to be a wrapper over JUnit. So I would like to better understand the pain point of using vanilla JUnit and how JUnitEE is able to solve those problems.

share|improve this question

1 Answer

up vote 3 down vote accepted

It seems not so much a wrapper or replacement for JUnit, but an extension of JUnit to allow running tests on a J2EE app server. There are many similar projects, such as HTTPUnit for testing web application UIs and DBUnit for making Database fixtures easier.

But JunitEE hasn't been updated in almost 10 years, so I doubt it's very useful for (or even compatible with) modern Java EE applications.

share|improve this answer
But why JUnit can not be runn on J2EE app servers..After all it is all Java or am I missing something fundamental? – Geek Mar 22 at 13:24
1  
@Geek: The standard JUnit TestRunners are just not designed to run in an app server environment. The "Why JUnitEE?" section on the project page explains this. But note that nowadays a different model is common: running the tests completely outside an app server. This has become possible with Java EE 5, since EJB implementation classes can be POJOs. – Michael Borgwardt Mar 22 at 14:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.