X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fio%2FClassPathResourceTest.java;h=a955def6c11841d6072d6846e28d5f5b527809c6;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=92e55db536cd5639cf3396fac14388c17892a911;hpb=89c06d4d52b46c154128c97d6e758fa1f4fc7a6e;p=utils diff --git a/support/general/src/test/java/org/wamblee/io/ClassPathResourceTest.java b/support/general/src/test/java/org/wamblee/io/ClassPathResourceTest.java index 92e55db5..a955def6 100644 --- a/support/general/src/test/java/org/wamblee/io/ClassPathResourceTest.java +++ b/support/general/src/test/java/org/wamblee/io/ClassPathResourceTest.java @@ -20,18 +20,17 @@ import junit.framework.TestCase; import java.io.IOException; import java.io.InputStream; - /** * 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( - "org/wamblee/io/myresource.txt"); + "org/wamblee/io/myresource.txt"); InputStream is = resource.getInputStream(); String data = FileSystemUtils.read(is); assertEquals("This is my resource", data); @@ -40,12 +39,12 @@ public class ClassPathResourceTest extends TestCase { /** * Loads a non-existing resource from the class path. Verifies that an IO * exception is thrown. - * + * */ public void testResourceNotFound() { try { ClassPathResource resource = new ClassPathResource( - "org/wamblee/io/myresource-nonexistent.txt"); + "org/wamblee/io/myresource-nonexistent.txt"); InputStream is = resource.getInputStream(); } catch (IOException e) { return; // ok