"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
on your classpath:

  InputStream is = getClass().getResourceAsStream("/test.txt");

HTH

-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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

Reply via email to