How Do You Test Classes That Must Be Run in a J2EE Container?

Submitted by: Administrator
To test classes that must be run in a J2EE container (e.g. servlets, EJBs), you should refactor J2EE components to delegate functionality to other objects that don't have to be run in a J2EE container will improve the design and testability of the software.

Cactus is an open source JUnit extension that can be used to test J2EE components in their natural environment.
Submitted by: Administrator

Read Online JUnit Job Interview Questions And Answers