We are doing web development using Struts 2, building using Maven. Our
system is made up of two projects: a war project and a core project. The
war project contains all web resources, jsps, etc. The core project
contains all of our struts actions, service layer and data access layer.

 

We split our system up like this because of the Maven restriction on
generating one artifact per project. The problem is that this makes
automated testing difficult. The web project contains the struts.xml
file that defines all of our actions but the action source code is in
the core project.

 

How can we set things up so that the test code can pick up the
struts.xml file from the web project while testing the code in the core
project? I have been thinking about putting the tests in the web
project, but this means that the test code is in a different project
from the code that is being tested, which is not ideal. The other
alternative is to have separate struts.xml files for testing and
deployment, which is also not ideal.

 

How have other people handled this?

 

Cheers

 

Peter

 

 

 


_______________________________________________________________________
The information contained in this e-mail is confidential and may be privileged. 
It is intended for the addressee only. If you are not the intended recipient, 
please delete this e-mail immediately. The contents of this e-mail must not be 
disclosed or copied without the sender's consent. The statements and opinions 
expressed in this message are those of the author and do not necessarily 
reflect those of the company. The company does not take any responsibility for 
the views of the author.

Registered Office: IT-Freedom Limited, 9 Minster Court, Tuscam Way, Camberley, 
Surrey GU15 3YY 
Registered in England, Number: 04500346
_______________________________________________________________________

Reply via email to