Let's make test data files resources; that is, test classes will read them via ClassLoader.getResource(String name). I think it's reasonable to require IDE users to set up their classpath to read resource files, if they want to run unit tests.
On Apr 20, 10:34 am, Zhihong <[email protected]> wrote: > It's > kind of tricky to use files in JUnit because working directories maybe > different depending on who is running the JUnit. I normally take care > of the problem for Maven and Eclipse. It may not work on other IDEs. > Do you think this is good enough? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~----------~----~----~----~------~----~------~--~---
