*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Loads an existing resource from the class path. Verifies it is found.
*
*/
public void testResourceFound() throws IOException {
ClassPathResource resource = new ClassPathResource(
/**
* Loads an existing resource from the class path. Verifies it is found.
*
*/
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);