Member Login

E-mail:    Password:  


Vendor : Oracle


Email  E-mail this page

Related Content  Related Content

Remember  Remember this item

 

Format: HTML

Date: 13/10/2006


In-Container Testing With JUnit

WORTHWHILE?

0

0 votes


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.