Overview
Today, unit testing is a very popular technique for ensuring code quality. Thanks to the JUnit framework, it has become quite easy to write unit tests for simple Java applications. However, where real-world enterprise applications are concerned, the typical JUnit testXXX() method will not be as helpful because those applications require that objects run inside a container. This paper describes the application of in-container testing in order to make JUnit tests access objects running inside a J2EE container. The example used in this paper is a Struts-based Web application, which is fairly common among enterprise applications, but the techniques discussed are relevant to any J2EE project.
|
|
HP StorageWorks 2000sa Modular Smart Array
Enabling easy transition from direct attached to centralized storage.
Six Priorities for Today’s Economic Climate
Learn how to reduce costs and achieve maximum value from IT.
Give Your Business the Competitive Edge
With the industry's most connected business intelligence solution.
Protect Your Business Critical Systems
With award-winning disaster recovery solutions by NEC.
Free IT Salary Report 2009
Register and be the first to download this invaluable resource
Find out the top concerns of CIOs / IT managers in Asia-Pacific