I have two projects, my main android application and another test project that runs on top of that android application.
I have placed a text file in my android test project, This file contains information xml content. The xml content is what my android application will receive when I hit my server.
I am using the TestCase class in my Android Test Project to test this bit of functionality. Unfortunately I'm having a problem loading the content to into my Android Test Project. Every time I try to load the file into my Android Test Project it does not find the text file. Am I right to say that the only way I can get to that file is by removing it from my Android Test Project and put it in my Actual Android Project or am I missing something that will let me load the File from my Android Test Project.
Details: In my Android Test Project I kept my file under /res/raw/testFile When I try doing
File myFile = new File("/res/raw/testFile");
I get a java.io.FileNotFoundException: /res/raw/testFile (No Such File or directory)
Thanks