Re: [m2] How to get access to test resources?

2007-08-08 Thread Insitu
"Mick Knutson" <[EMAIL PROTECTED]> writes: > In my unit test, I have a call to get a test.txt file that live in > src/test/resources/test.txt > > byte[] test = AES.file2byte("test.txt"); > > But it never finds the file > You should access the file using classloader, as the resources are put o

[m2] How to get access to test resources?

2007-08-08 Thread Mick Knutson
In my unit test, I have a call to get a test.txt file that live in src/test/resources/test.txt byte[] test = AES.file2byte("test.txt"); But it never finds the file Any help? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.mys