Can somebody suggest an easy way to get a reference to a file as a String/InputStream/File/etc type object in a junit test class? Obviously I could paste the file (xml in t
If you need to actually get a File object, you could do the following:
File
URL url = this.getClass().getResource("/test.wsdl"); File testWsdl = new File(url.getFile());
Which has the benefit of working cross platform, as described in this blog post.