/**
* Tests for the classpath resource.
*/
public class ClassPathResourceTest extends TestCase {
/**
* Loads an existing resource from the class path. Verifies it is found.
/**
* Tests for the classpath resource.
*/
public class ClassPathResourceTest extends TestCase {
/**
* Loads an existing resource from the class path. Verifies it is found.
*/
public void testResourceFound() throws IOException {
ClassPathResource resource = new ClassPathResource(
*/
public void testResourceFound() throws IOException {
ClassPathResource resource = new ClassPathResource(
InputStream is = resource.getInputStream();
String data = FileSystemUtils.read(is);
assertEquals("This is my resource", data);
InputStream is = resource.getInputStream();
String data = FileSystemUtils.read(is);
assertEquals("This is my resource", data);