You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by antnewbie <vi...@directi.com> on 2008/10/23 14:43:45 UTC

Where to put text files used by tests

I am converting a project into maven.Some tests need text files.Where should
I put them?
I am getting this error
java.lang.AssertionError: Exception thrown: java.io.FileNotFoundException:
bin\xw\mca\tests\testdata\without_name (The system cannot find the path
specified)
thanks
-- 
View this message in context: http://www.nabble.com/Where-to-put-text-files-used-by-tests-tp20130114p20130114.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Where to put text files used by tests

Posted by "Okken,Brett" <BO...@CERNER.COM>.
Most likely they should go at /src/test/resources. This will put those files on the classpath while the tests are run. 


Brett Okken | MMF Archive | Software Architect | 816.201.6112 | www.cerner.com | bokken@cerner.com

-----Original Message-----
From: antnewbie [mailto:vishal.s@directi.com] 
Sent: Thursday, October 23, 2008 7:44 AM
To: users@maven.apache.org
Subject: Where to put text files used by tests


I am converting a project into maven.Some tests need text files.Where should I put them?
I am getting this error
java.lang.AssertionError: Exception thrown: java.io.FileNotFoundException:
bin\xw\mca\tests\testdata\without_name (The system cannot find the path
specified)
thanks
--
View this message in context: http://www.nabble.com/Where-to-put-text-files-used-by-tests-tp20130114p20130114.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org