Hi,

I would put the configuration files for the test inside src/test/java (or src/test/conf if you want to be strict), and then they will be copied to test-classes and will be in the classpath. In order to perform the container initialization you can access them using getClass().getResourcesAsStream(...)


David


Pilgrim, Peter wrote:

Hi

I am running the test plugin with ``maven test'' and I am getting a problem.
I have unit test that open configuration files. e.g. to set up IoC container
or specific mock connections to database or other J2EE resources.

How can tell maven run the unit test from a specific folder?
How can I specify the location of the resources?
Is there a better way to get maven to dump more specific debug on goal.
I want to run ``maven -X'' but only want to see verbose output when it
is about to run ``TestMixin.java'' for example.

TIA

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==============================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
David Rabinowitz
Project Manager
MobiMate Ltd.
http://www.mobimate.com/

Tel: +972-8-9223622 ext 5215
Fax: +972-8-9150049



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to