classpath, usually in a jar. here are the method signatures:
public static getResourceAsString(String resourceName) public static InputStream getResourceAsStream(String resourceName) public static File getResourceAsFile(String resourceName) On Tue, May 10, 2011 at 6:48 PM, Peter Niederwieser <[email protected]> wrote: > > phil swenson wrote: >> >> I am writing a unit test for a utility method that reads in resources from >> a Jar file. >> > > Where does the method under test read the resource from? File system? Class > path? What's the method's signature? > > -- > Peter Niederwieser > Developer, Gradle > http://www.gradle.org > Trainer & Consultant, Gradleware > http://www.gradleware.com > Creator, Spock Framework > http://spockframework.org > > > -- > View this message in context: > http://gradle.1045684.n5.nabble.com/Approach-on-writing-a-unit-test-tp4385924p4386037.html > Sent from the gradle-user mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
